[Bug 2060120] Re: Unmet dependencies cause gparted to fail to install
Juozas Pocius
2060120 at bugs.launchpad.net
Wed Apr 3 15:41:31 UTC 2024
Currently the noble repositories are the mostly broken, related to
recent xz backdoor cve (CVE-2024-3094). Meanwhile you may want to add an
override to your apt configuration, create a file in
/etc/apt/preferences.d with contents similar to below, where pinning >
1000 would mean package could be downgraded if there's a version from
more preferred archive.
$ cat /etc/apt/preferences.d/apt-pinning
Package: *
Pin: release a=noble-updates
Pin-Priority: 1002
Package: *
Pin: release a=noble
Pin-Priority: 1001
You may add noble-security override to the above file if you want to be
future proof, make sure priority is higher (1002 or 1003) than on noble
archive
Package: *
Pin: release a=noble-security
Pin-Priority: 1003
Also after creating this configuration and updating apt repositories
apt-cache policy should be similar to below assuming you're using only
main ubuntu repositories (noble, noble-security, noble-updates, noble-
backports) and nothing else more.
$ apt-cache policy
Package files:
100 /var/lib/dpkg/status
release a=now
1002 http://archive.ubuntu.com/ubuntu noble-updates/multiverse amd64 Packages
release v=24.04,o=Ubuntu,a=noble-updates,n=noble,l=Ubuntu,c=multiverse,b=amd64
origin archive.ubuntu.com
1002 http://archive.ubuntu.com/ubuntu noble-updates/universe amd64 Packages
release v=24.04,o=Ubuntu,a=noble-updates,n=noble,l=Ubuntu,c=universe,b=amd64
origin archive.ubuntu.com
1002 http://archive.ubuntu.com/ubuntu noble-updates/restricted amd64 Packages
release v=24.04,o=Ubuntu,a=noble-updates,n=noble,l=Ubuntu,c=restricted,b=amd64
origin archive.ubuntu.com
1002 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
release v=24.04,o=Ubuntu,a=noble-updates,n=noble,l=Ubuntu,c=main,b=amd64
origin archive.ubuntu.com
1001 http://archive.ubuntu.com/ubuntu noble/multiverse amd64 Packages
release v=24.04,o=Ubuntu,a=noble,n=noble,l=Ubuntu,c=multiverse,b=amd64
origin archive.ubuntu.com
1001 http://archive.ubuntu.com/ubuntu noble/universe amd64 Packages
release v=24.04,o=Ubuntu,a=noble,n=noble,l=Ubuntu,c=universe,b=amd64
origin archive.ubuntu.com
1001 http://archive.ubuntu.com/ubuntu noble/restricted amd64 Packages
release v=24.04,o=Ubuntu,a=noble,n=noble,l=Ubuntu,c=restricted,b=amd64
origin archive.ubuntu.com
1001 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
release v=24.04,o=Ubuntu,a=noble,n=noble,l=Ubuntu,c=main,b=amd64
origin archive.ubuntu.com
Pinned packages:
Finally apt-cache policy for gparted & gparted-common packages should be
like this as long as you have the modifications above and also after
repositories are no longer broken it'd be safe to undo the modification.
$ apt-cache policy gparted gparted-common
gparted:
Installed: (none)
Candidate: 1.5.0-1
Version table:
1.5.0-1 1002
1002 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
gparted-common:
Installed: (none)
Candidate: 1.5.0-1
Version table:
1.5.0-1build2 1001
1001 http://archive.ubuntu.com/ubuntu noble/main amd64 Packages
1.5.0-1 1002
1002 http://archive.ubuntu.com/ubuntu noble-updates/main amd64 Packages
** CVE added: https://cve.mitre.org/cgi-bin/cvename.cgi?name=2024-3094
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gparted in Ubuntu.
https://bugs.launchpad.net/bugs/2060120
Title:
Unmet dependencies cause gparted to fail to install
Status in gparted package in Ubuntu:
New
Bug description:
1) Ubuntu Noble Numbat (development branch) Release: 24.04
2) gparted 1.5.0-1
3) Expected gparted to install.
4) Install failed with 'Depends: gparted-common (= 1.5.0-1) but 1.5.0-1build2 is to be installed'
5) Output from terminal:
$ sudo apt-get install gparted
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:
gparted : Depends: gparted-common (= 1.5.0-1) but 1.5.0-1build2 is to be installed
N: Ignoring file 'ubuntu.sources.curtin.old' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
E: Unable to correct problems, you have held broken packages.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gparted/+bug/2060120/+subscriptions
More information about the foundations-bugs
mailing list