I had problems installing gdal in R v 3.6.3, showing the message on R terminal:
configure: error: gdal-config not found or not executable
Solved! Using apt-get to install libgal have unsolved dependencies, solved them resulted in a system crash. After resolving the boot crash.
Used:
sudo aptitude install libgdal-dev
The following actions will resolve these dependencies:
Install the following packages:
default-libmysqlclient-dev [1.0.5ubuntu2 (groovy)]
libmysqlclient-dev [8.0.21-1 (groovy)]
libpq-dev [12.4-1 (groovy)]
Downgrade the following packages:
libmysqlclient21 [8.0.22-0ubuntu0.20.10.2 (now) -> 8.0.21-1 (groovy)]
libpq5 [12.5-0ubuntu0.20.10.1 (now) -> 12.4-1 (groovy)]
postgresql-client-12 [12.5-0ubuntu0.20.10.1 (now) -> 12.4-1 (groovy)]
Now I realized that the R updated from 3.6.3 to 4.0.2 automatically. It should not happen I don't know how to stop the automatic updates so I add the repository for bionic-cran35:
´´´´ sudo add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' ´´´´
I disable all the downloads from internet (Cannonical, community and property). I'm not supposed to but I don't know how to stop that automatic update for R and giving me troubles again.