qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.36k stars 2.98k forks source link

Can't install qgis-plugin-grass : Depends: grass786 #49030

Closed tazrart closed 1 month ago

tazrart commented 2 years ago

Feature description

Dear QGIS Users,

I wanted install QGIS (3.24) on Ubuntu (20.04) following the steps cited in : https://www.qgis.org/fr/site/forusers/alldownloads.html (section Debian/ubuntu), but I have this error : qgis-plugin-grass : Depends: grass786.

I tried to follow the solutions proposed in the issue below but I can't solve my problem: https://github.com/qgis/QGIS/issues/38329

Here are my command lines in the terminal:

  1. Remove QGIS and dependent packages :
sudo apt-get remove --auto-remove qgis-providers
sudo apt purge gdal* --auto-remove
sudo apt purge qgis* python-qgis* --auto-remove
sudo apt purge grass* --auto-remove
sudo apt purge proj* --auto-remove
sudo apt purge geos* --auto-remove
  1. Install QGIS :
sudo apt install gnupg software-properties-common

wget -qO - https://qgis.org/downloads/qgis-2021.gpg.key | sudo gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/qgis-archive.gpg --import

sudo chmod a+r /etc/apt/trusted.gpg.d/qgis-archive.gpg

sudo add-apt-repository "deb https://qgis.org/ubuntu $(lsb_release -c -s) main"

sudo apt update

sudo apt install qgis qgis-plugin-grass
  1. But I have this error :
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 qgis-plugin-grass : Depends: grass786
E: Unable to correct problems, you have held broken packages.

How to solve this problem please?

Thank you in advance for your help.

Best regards,

Additional context

No response

paulfouquet commented 1 year ago

I have the same issue

Uatschitchun commented 1 year ago

Yes, me too ...

ubuntugis version depends on grass820 and ubuntu version depends on grass782

both dependencies are not able to be resolved. grass from ubuntugis offers grass78

agiudiceandrea commented 1 year ago

@Uatschitchun, as far as I can see, currently, QGIS 3.32.2:

So, I don't see the issue here...

Uatschitchun commented 1 year ago

@agiudiceandrea This refers, like the initial issue, to focal (20.04). I know that focal does not support latest qgis version cause of QT 5.13, but being able to install latest QT 5.12 version (3.26?) would still be nice

agiudiceandrea commented 1 year ago

@Uatschitchun, I'm sorry but QGIS 3.26 and Ubuntu Focal are no longer supported: https://github.com/qgis/QGIS-Website/commit/55e2b2e26164a63bb5ce9c5c35041cfa923c6997 https://qgis.org/en/site/getinvolved/development/roadmap.html

Anyway, about QGIS 3.26.3 for Ubuntu Focal: the qgis-plugin-grass package from ubuntu.qgis.org repository depends on grass782 and the Ubuntu repository currently offers grass-core 7.8.2-1build3 and grass782 packages.

aloboa commented 1 month ago

Following https://www.qgis.org/resources/installation-guide/ I have this issue with ubuntu 22.04 $ sudo apt install qgis-plugin-grass Reading package lists... Done Building dependency tree... Done Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:

The following packages have unmet dependencies: qgis-plugin-grass : Depends: grass787 E: Unable to correct problems, you have held broken packages.

Please, reopen.

aloboa commented 1 month ago

@agiudiceandrea sudo apt install qgis works fine. The problem is with qgis-plugin-grass only.

agiudiceandrea commented 1 month ago

@jef-n, have you seen this issue report?

jef-n commented 1 month ago

@jef-n, have you seen this issue report?

Maybe, but it doesn't have enough information to be conclusive anyway.

$ cat pkgtest.sh
#!/bin/bash

set -e

dist=jammy

debootstrap --components=main,universe $dist $dist

mkdir -m755 -p $dist/etc/apt/keyrings
wget -O $dist/etc/apt/keyrings/qgis-archive-keyring.gpg https://download.qgis.org/downloads/qgis-archive-keyring.gpg

cat <<EOF >>$dist/etc/apt/sources.list
deb http://archive.ubuntu.com/ubuntu $dist-security main universe
deb http://archive.ubuntu.com/ubuntu $dist-updates main universe
EOF

cat <<EOF >$dist/etc/apt/sources.list.d/qgis.sources
Types: deb deb-src
URIs: https://qgis.org/debian
Suites: $dist
Architectures: amd64
Components: main
Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg
EOF

chroot $dist apt-get update
chroot $dist apt-get install -y qgis-plugin-grass
chroot $dist dpkg -l "*grass*"
$ sudo pkgtest.sh
…
Processing triggers for libc-bin (2.35-0ubuntu3) ...
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                     Version          Architecture Description
+++-========================-================-============-=====================================================
un  grass                    <none>           <none>       (no description available)
ii  grass-core               7.8.7-1          amd64        GRASS GIS core components
un  grass-dev                <none>           <none>       (no description available)
un  grass-dev-doc            <none>           <none>       (no description available)
ii  grass-doc                7.8.7-1          all          GRASS GIS user documentation
un  grass-gui                <none>           <none>       (no description available)
un  grass787                 <none>           <none>       (no description available)
un  libgdal-grass            <none>           <none>       (no description available)
ii  libqgisgrass7-3.38.1     1:3.38.1+36jammy amd64        QGIS - shared grass library
ii  qgis-plugin-grass        1:3.38.1+36jammy amd64        GRASS plugin for QGIS
ii  qgis-plugin-grass-common 1:3.38.1+36jammy all          GRASS plugin for QGIS - architecture-independent data
ii  qgis-provider-grass      1:3.38.1+36jammy amd64        GRASS provider for QGIS
jef-n commented 1 month ago

BTW same for 1:3.34.9+36jammy

agiudiceandrea commented 1 month ago

I've just installed qgis 3.38.1 on Ubuntu Jammy Jellyfish 22.04 with sudo apt install qgis qgis-plugin-grass following https://qgis.org/resources/installation-guide/#debianubuntu without any issue.

aloboa commented 1 month ago

But not in my case, and this is well reported. Ignoring a problem is not fixing it, please do not close it. The grass plugin is not really relevant for me, but it might be for other people, and closing like this is not the way to achieve robust software.

(base) alobo@pop-os:~$ lsb_release -cs
jammy
(base) alobo@pop-os:~$ cat /etc/apt/sources.list.d/qgis.sources
Types: deb deb-src
URIs: https://qgis.org/debian
Suites: jammy
Architectures: amd64
Components: main
Signed-By: /etc/apt/keyrings/qgis-archive-keyring.gpg

(base) alobo@pop-os:~$ sudo apt update
Hit:1 https://cloud.r-project.org/bin/linux/ubuntu jammy-cran40/ InRelease
Hit:3 https://ppa.launchpadcontent.net/c2d4u.team/c2d4u4.0+/ubuntu jammy InRelease                     
Hit:4 https://ppa.launchpadcontent.net/yannubuntu/boot-repair/ubuntu jammy InRelease
Hit:5 http://apt.pop-os.org/proprietary jammy InRelease                
Hit:2 https://debian.qgis.org/debian jammy InRelease
Hit:6 http://apt.pop-os.org/release jammy InRelease
Hit:7 http://apt.pop-os.org/ubuntu jammy InRelease
Hit:8 http://apt.pop-os.org/ubuntu jammy-security InRelease
Hit:9 http://apt.pop-os.org/ubuntu jammy-updates InRelease
Hit:10 http://apt.pop-os.org/ubuntu jammy-backports InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
(base) alobo@pop-os:~$ sudo apt install qgis qgis-plugin-grass
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
qgis is already the newest version (1:3.38.1+36jammy).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 qgis-plugin-grass : Depends: grass787
E: Unable to correct problems, you have held broken packages.
(base) alobo@pop-os:~$ 
agiudiceandrea commented 1 month ago

@aloboa, you are using Pop!_OS, not Ubuntu (as previously reported), aren't you? It looks like your issue may have the same root cause of https://github.com/qgis/QGIS/issues/57951.