0

Ubuntu 20.04.6 LTS

sudo apt-get upgrade

Errors :

The following packages have unmet dependencies:
 linux-tools-5.4.0-1040-azure : Depends: linux-azure-tools-5.4.0-1040 but it is not installed
 linux-tools-5.4.0-1142-azure : Depends: linux-azure-tools-5.4.0-1142 but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
apt --fix-broken install

Errors:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  g++-7 geoip-database libbind9-160 libcupsfilters1 libcupsimage2 libdns-export1100 libdns1100 libgeoip1 libirs160 libisc-export169
  libisc169 libisccc160 libisccfg160 libisl19 libjson-c3 liblwres160 libplymouth4 libstdc++-7-dev
  linux-azure-5.4-cloud-tools-5.4.0-1140 linux-azure-5.4-cloud-tools-5.4.0-1142 linux-azure-5.4-headers-5.4.0-1140
  linux-azure-5.4-headers-5.4.0-1142 linux-azure-5.4-tools-5.4.0-1140 linux-azure-5.4-tools-5.4.0-1142
  linux-azure-cloud-tools-5.4.0-1140 linux-azure-headers-5.4.0-1140 linux-azure-tools-5.4.0-1140 linux-cloud-tools-5.4.0-1140-azure
  linux-headers-5.4.0-1140-azure linux-image-5.4.0-1140-azure linux-modules-5.4.0-1140-azure linux-modules-extra-5.4.0-1140-azure
  linux-tools-5.4.0-1140-azure python3-pam
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  linux-azure-tools-5.4.0-1040 linux-azure-tools-5.4.0-1142
The following NEW packages will be installed:
  linux-azure-tools-5.4.0-1040 linux-azure-tools-5.4.0-1142
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
2 not fully installed or removed.
Need to get 0 B/10.5 MB of archives.
After this operation, 49.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 212877 files and directories currently installed.)
Preparing to unpack .../linux-azure-tools-5.4.0-1040_5.4.0-1040.42_amd64.deb ...
Unpacking linux-azure-tools-5.4.0-1040 (5.4.0-1040.42) ...
dpkg: error processing archive /var/cache/apt/archives/linux-azure-tools-5.4.0-1040_5.4.0-1040.42_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/libcpupower.so.5.4.0-1040', which is also in package linux-azure-5.4-tools-5.4.0-1040 5.4.0-1040.42~18.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../linux-azure-tools-5.4.0-1142_5.4.0-1142.149_amd64.deb ...
Unpacking linux-azure-tools-5.4.0-1142 (5.4.0-1142.149) ...
dpkg: error processing archive /var/cache/apt/archives/linux-azure-tools-5.4.0-1142_5.4.0-1142.149_amd64.deb (--unpack):
 trying to overwrite '/usr/lib/libcpupower.so.5.4.0-1142', which is also in package linux-azure-5.4-tools-5.4.0-1142 5.4.0-1142.149~18.04.1
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /var/cache/apt/archives/linux-azure-tools-5.4.0-1040_5.4.0-1040.42_amd64.deb
 /var/cache/apt/archives/linux-azure-tools-5.4.0-1142_5.4.0-1142.149_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)'

Then

sudo apt-autoremove :

Errors again

Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 linux-tools-5.4.0-1040-azure : Depends: linux-azure-tools-5.4.0-1040 but it is not installed
 linux-tools-5.4.0-1142-azure : Depends: linux-azure-tools-5.4.0-1142 but it is not installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

And so on ! How to break this infernal loop?

user68186
  • 37,461
Ccnet
  • 1

0 Answers0