G
G
gingerose2021-01-26 00:43:02
ubuntu
gingerose, 2021-01-26 00:43:02

Why doesn't apt-get work after reinstallation?

Good afternoon, there was such a problem, after reinstalling apt-get, there were broken packages.

sudo apt update works
Ex:1 dl.google.com/linux/chrome/deb stable InRelease
Ex:2 ua.archive.ubuntu.com/ubuntu xenial InRelease
Ex:3 archive.canonical.com/ubuntu xenial InRelease
Ex:4 ua .archive.ubuntu.com/ubuntu xenial-security InRelease
Ex:5 ua.archive.ubuntu.com/ubuntu xenial-updates InRelease
Ex:6 ua.archive.ubuntu.com/ubuntu xenial-backports InRelease
Ex:7ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease Got
260 kB in 1s (260 kB/s)
Reading package lists… Done
Building dependency tree… Done
All packages are up to date.

But when I sudo apt dist-upgrade updates that affect package dependencies, I get an error:
Reading package lists... Done
Building the dependency tree... Done
You can run "apt --fix-broken install" to fix these errors.
The following packages have unmet dependencies:
apt-utils : Depends: apt (= 1.6.12ubuntu0.1) but 1.8.2.2 is already installed
aptitude : Depends: aptitude-common (= 0.8.13-2) but it cannot be installed
Depends: libapt-pkg6.0 (>= 1.9.0) but it cannot be installed
Depends: libboost-iostreams1.74.0 (>= 1.74.0) but it cannot be installed
Depends: libcwidget4 (>= 0.5.18- 1) but it cannot be installed
Depends: libgcc-s1 (>= 3.0) but it cannot be installed
Depends: libncursesw6 (>= 6.1+20180210) but it cannot be installed
Depends: libsigc++-2.0-0v5 (>= 2.8.0) but it cannot be installed
Depends: libstdc++6 (>= 9) but 8.4.0-1ubuntu1~18.04 is already installed
Depends: libtinfo6 (>= 6.1+20180210) but it cannot be installed
Depends: libxapian30 (>= 1.4.14~) but 1.4.5-1ubuntu0.1 is already installed
p11-kit-modules : Depends: libp11-kit0 (= 0.23.9-2) but 0.23.22-1 is already installed
E: Unmet dependencies. Try "apt --fix-broken install" without a package name (or a solution).

I also tried apt --fix-broken install, sudo apt update && apt-cache policy apt-utils, sudo apt update && sudo apt -y full-upgrade, but nothing helped.

Who knows what to do in this situation, I will be grateful for the help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-01-26
@ky0

You have some kind of hodgepodge from the repositories. Choose any one version of Ubuntu (preferably fresher), delete the rest, update, and then -f install.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question