7

I am trying to install QGIS3 on my Ubuntu 16.04 Xenial.

Following the instructions on the QGIS Website I added the following lines to my sources.list:

deb https://qgis.org/ubuntugis xenial main
deb-src https://qgis.org/ubuntugis xenial main

I run

sudo apt-get update

and try to execute the installation:

sudo apt-get install qgis python-qgis qgis-plugin-grass

For each of the packages I get the answer that there are several missing packages:

python-qgis : Depends: python-qgis-common (= 1:3.0.0+24xenial-ubuntugis) but it is not going to be installed
           Depends: libqgispython3.0.0 but it is not going to be installed
           Depends: libqgis-analysis3.0.0 but it is not going to be installed
           Depends: libqgis-core3.0.0 but it is not going to be installed
           Depends: libqgis-gui3.0.0 but it is not going to be installed
           Depends: libqgis-server3.0.0 but it is not going to be installed
 qgis : Depends: gdal-abi-2-2-2 but it is not installable
    Depends: libgdal20 (>= 1.8.0) but it is not installable
    Depends: libqgis-analysis3.0.0 but it is not going to be installed
    Depends: libqgis-app3.0.0 but it is not going to be installed
    Depends: libqgis-core3.0.0 but it is not going to be installed
    Depends: libqgis-gui3.0.0 but it is not going to be installed
    Depends: qgis-providers (= 1:3.0.0+24xenial-ubuntugis) but it is not going to be installed
 qgis-plugin-grass : Depends: qgis-provider-grass (= 1:3.0.0+24xenial-ubuntugis) but it is not going to be installed
                 Depends: libgdal20 (>= 1.8.0) but it is not installable
                 Depends: libqgis-app3.0.0 but it is not going to be installed
                 Depends: libqgis-core3.0.0 but it is not going to be installed
                 Depends: libqgis-gui3.0.0 but it is not going to be installed
                 Depends: libqgisgrass7-3.0.0 but it is not going to be installed
                 Depends: grass740 but it is not installable

Most interesting is that some packages are not installable: gdal-abi-2-2-2, libgdal20, grass740

Any idea how to solve this?

11

Tested 29/06/2018

--QGIS 3 Ubuntu 16.04

sudo sh -c 'echo "deb https://qgis.org/ubuntugis  xenial main" >> /etc/apt/sources.list'
sudo sh -c 'echo "deb-src https://qgis.org/ubuntugis xenial main" >> /etc/apt/sources.list'
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

wget -O - https://qgis.org/downloads/qgis-2017.gpg.key | gpg --import
gpg --fingerprint CAEB3DC3BDF7FB45
gpg --export --armor CAEB3DC3BDF7FB45 | sudo apt-key add -

sudo apt-get update
sudo apt-get update && sudo apt-get install qgis python-qgis qgis-plugin-grass
  • do I have to uninstall my previous version for this first and just this code would work or do I have to add more (not a pro in ubuntu) – Damini Jain Aug 30 '18 at 13:37
  • Is repeated "sudo apt-get update" useful or necessary? – Mateusz Konieczny Dec 6 '18 at 19:19
  • For me, on my Ubuntu 16.04 following this instructions installs QGIS 2.18.16. – Mateusz Konieczny Dec 6 '18 at 19:24
  • These commands installed QGIS 3.4 successfully, but there is not Qt Designer. – nickan Jan 4 at 10:46
4

For QGIS3 on xenial you have to use ubuntugis-unstable ppa

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

  • Indeed that worked for me today, they should probably update QGIS Installer docs – adamczi May 8 '18 at 14:29
  • @adamczi I think qgis.org/en/site/forusers/alldownloads.html#id10 is clear enough. – AndreJ May 25 '18 at 14:09
  • 1
    you're right @AndreJ, I must have read it incorrectly or maybe it changed. I'd also like to point out that universe was needed to be enabled on my Ubuntus to make it work (otherwise I got a lot of 'not going to be installed' stuff) – adamczi May 25 '18 at 14:24
  • I guess you would not be able to install any software if you kicked off the main ubuntu repository. Unless you try to self-compile everything... – AndreJ May 25 '18 at 15:54
1

If you have conda, you can do:

conda config --add channels conda-forge
conda create -n qgis3 -c ceholden -c QuantStack qgis=3
source activate qgis3
qgis

Source: https://github.com/conda-forge/qgis-feedstock/issues/17#issuecomment-373871708

  • You can use conda, but it is not necessary for installing QGIS3. – AndreJ May 25 '18 at 14:11
  • See my previous answer. I was not meaning to say that it is absolutely necessary, but for this answer it is. – geekdenz May 26 '18 at 6:13
0

#/etc/source.list.d/ubuntugis.list deb https://qgis.org/ubuntugis xenial main deb-src https://qgis.org/ubuntugis xenial main

and

sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable sudo apt update sudo apt install qgis

is what my colleague seems to have found out.

Before that, I managed to install it by manually downloading all dependency *.deb files from https://qgis.org/ubuntugis/pool/main/q/qgis/ and installing them with gdebi.

0

I have Linux Mint 18.3 (Ubuntu 16.04 ) computer, I followed the following aforementioned guidelines:

--QGIS 3 Ubuntu 16.04

sudo sh -c 'echo "deb https://qgis.org/ubuntugis  xenial main" >> /etc/apt/sources.list'
sudo sh -c 'echo "deb-src https://qgis.org/ubuntugis xenial main" >> /etc/apt/sources.list'
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable

wget -O - https://qgis.org/downloads/qgis-2017.gpg.key | gpg --import
gpg --fingerprint CAEB3DC3BDF7FB45
gpg --export --armor CAEB3DC3BDF7FB45 | sudo apt-key add -

sudo apt-get update
sudo apt-get update && sudo apt-get install qgis python-qgis qgis-plugin-grass

However I was still getting unmanaged dependency errors. Hence I tried with aptitude as follows:

sudo aptitude install qgis python-qgis

To resolve the dependency I selected :

 Install the following packages:                         
1)    python3-psycopg2 [2.7.6.1-3.pgdg16.04+1 (xenial-pgdg)]

and accepted the proposed solution. After the package manager installed all of the qgis libraries, I could observe qgis 3.4.4 Maedira on my screen with joy.

0

I was able to install QGis 3.4 on Ubuntu 16.04 by removing the libsqlite3.so.0 symbolic link

sudo rm /usr/local/lib/libsqlite3.so.0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.