0
rated 0 times
[
0]
[
0]
/ answers: 1 / hits: 719
/ 2 Years ago, tue, august 23, 2022, 2:36:34
im somehow ended up in package dependencies loop. when im trying to upgrade my packages following appears:
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libapt-pkg6.0 : Depends: libgcrypt20 (>= 1.10.0) but 1.9.4-3ubuntu3 is installed
Depends: libzstd1 (>= 1.5.2) but 1.4.8+dfsg-3build1 is installed
Recommends: apt (>= 2.5.3) but 2.4.8 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
so i tried sudo apt --fix-broken install
sudo apt --fix-broken install
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
libapt-pkg6.0 : Depends: libgcrypt20 (>= 1.10.0) but 1.9.4-3ubuntu3 is installed
Depends: libzstd1 (>= 1.5.2) but 1.4.8+dfsg-3build1 is installed
Recommends: apt (>= 2.5.3) but 2.4.8 is installed
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies
then i tried to remove/purge the package sudo apt purge libapt-pkg6.0:amd64
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
apt : Depends: libapt-pkg6.0 (>= 2.4.8) but it is not going to be installed
apt-utils : Depends: libapt-pkg6.0 (>= 2.4.8) but it is not going to be installed
packagekit : Depends: libapt-pkg6.0 (>= 1.9.2) but it is not going to be installed
python3-apt : Depends: libapt-pkg6.0 (>= 1.9.11~) but it is not going to be installed
ubuntu-advantage-tools : Depends: libapt-pkg6.0 (>= 0.8.0) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
output of apt policy libapt-pkg6.0
libapt-pkg6.0:
Installed: 2.5.3
Candidate: 2.5.3
Version table:
*** 2.5.3 100
100 /var/lib/dpkg/status
2.4.8 500
500 http://ch.archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages
2.4.5 500
500 http://ch.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
i tried other ways as well, but it seems that im stuck in this position. Any advice would be helpful.
More From » apt