0
  • $ sudo apt-get update -y && sudo apt-get full-upgrade && sudo apt autoremove -y
Get:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:3 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:5 http://security.ubuntu.com/ubuntu jammy-security InRelease
Fetched 270 kB in 11s (23.9 kB/s)
Reading package lists... Done
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:
 libcairo-gobject-perl : Depends: perlapi-5.30.0 but it is not installable
 libcairo-perl : Depends: perlapi-5.30.0 but it is not installable
 libcommon-sense-perl : Depends: perlapi-5.30.0 but it is not installable
                        Depends: perl (< 5.30.1~) but 5.34.0-3ubuntu1 is installed
 libfile-fcntllock-perl : Depends: perlapi-5.30.0 but it is not installable
 libgcc-s1:i386 : Depends: libc6:i386 (>= 2.35) but it is not installed
 libgcrypt20:i386 : Depends: libc6:i386 (>= 2.33) but it is not installed
                    Depends: libgpg-error0:i386 (>= 1.27) but it is not installed
 libgjs0g : Depends: libgirepository-1.0-1 (>= 1.66.0) but 1.64.1-1~ubuntu20.04.1 is installed
            Depends: libgirepository-1.0-1-with-libffi8 (>= 1.64)
 libglib-object-introspection-perl : Depends: perlapi-5.30.0 but it is not installable
 libpython3.10-stdlib : Depends: libmpdec3 but it is not installed
 python3 : PreDepends: python3-minimal (= 3.8.2-0ubuntu2) but 3.10.4-0ubuntu2 is installed
           Depends: libpython3-stdlib (= 3.8.2-0ubuntu2) but 3.10.4-0ubuntu2 is installed
 python3-pyqt5.sip : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-renderpm : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-reportlab-accel : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-simplejson : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-sip : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-talloc : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-yaml : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
  • $ sudo apt --fix-broken install
After this operation, 56.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 286966 files and directories currently installed.)
Preparing to unpack .../python3-distutils_3.10.4-0ubuntu1_all.deb ...
Unpacking python3-distutils (3.10.4-0ubuntu1) over (3.8.10-0ubuntu1~20.04) ...
dpkg: error processing archive /var/cache/apt/archives/python3-distutils_3.10.4-0ubuntu1_all.deb (--unpack):
 trying to overwrite '/usr/lib/python3.10/distutils/README', which is also in package python3.10-distutils 3.10.4-1+focal2
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../python3-lib2to3_3.10.4-0ubuntu1_all.deb ...
Unpacking python3-lib2to3 (3.10.4-0ubuntu1) over (3.8.10-0ubuntu1~20.04) ...
dpkg: error processing archive /var/cache/apt/archives/python3-lib2to3_3.10.4-0ubuntu1_all.deb (--unpack):
 trying to overwrite '/usr/lib/python3.10/lib2to3/Grammar.txt', which is also in package python3.10-lib2to3 3.10.4-1+focal2
Preparing to unpack .../libcrypt-dev_1%3a4.4.27-1_amd64.deb ...
Unpacking libcrypt-dev:amd64 (1:4.4.27-1) over (1:4.4.10-10ubuntu4) ...
Preparing to unpack .../libcrypt1_1%3a4.4.27-1_amd64.deb ...
Unpacking libcrypt1:amd64 (1:4.4.27-1) over (1:4.4.10-10ubuntu4) ...
Selecting previously unselected package libcrypt1:i386.
Preparing to unpack .../libcrypt1_1%3a4.4.27-1_i386.deb ...
Unpacking libcrypt1:i386 (1:4.4.27-1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/python3-distutils_3.10.4-0ubuntu1_all.deb
 /var/cache/apt/archives/python3-lib2to3_3.10.4-0ubuntu1_all.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Getting unmet dependencies error while upgrading to Ubuntu 22.04 lts from Ubuntu 20.04 lts.

Why this dependency error is occurring and how to resolve this dependency error?

Edit

Running command one at a time and removed the -y parameter for upgrading

  • $ sudo apt update
Get:1 http://in.archive.ubuntu.com/ubuntu jammy InRelease [270 kB]
Hit:2 https://brave-browser-apt-release.s3.brave.com stable InRelease
Hit:3 http://security.ubuntu.com/ubuntu jammy-security InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:5 http://in.archive.ubuntu.com/ubuntu jammy-backports InRelease
Fetched 270 kB in 2s (143 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
1947 packages can be upgraded. Run 'apt list --upgradable' to see them.
  • devp@Painkiller:~$ sudo apt upgrade
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:
 libcairo-gobject-perl : Depends: perlapi-5.30.0 but it is not installable
 libcairo-perl : Depends: perlapi-5.30.0 but it is not installable
 libcommon-sense-perl : Depends: perlapi-5.30.0 but it is not installable
                        Depends: perl (< 5.30.1~) but 5.34.0-3ubuntu1 is installed
 libcrypt1:i386 : Depends: libc6:i386 (>= 2.25) but it is not installed
 libfile-fcntllock-perl : Depends: perlapi-5.30.0 but it is not installable
 libgcc-s1:i386 : Depends: libc6:i386 (>= 2.35) but it is not installed
 libgcrypt20:i386 : Depends: libc6:i386 (>= 2.33) but it is not installed
                    Depends: libgpg-error0:i386 (>= 1.27) but it is not installed
 libgjs0g : Depends: libgirepository-1.0-1 (>= 1.66.0) but 1.64.1-1~ubuntu20.04.1 is installed
            Depends: libgirepository-1.0-1-with-libffi8 (>= 1.64)
 libglib-object-introspection-perl : Depends: perlapi-5.30.0 but it is not installable
 libpython3.10-stdlib : Depends: libmpdec3 but it is not installed
 python3 : PreDepends: python3-minimal (= 3.8.2-0ubuntu2) but 3.10.4-0ubuntu2 is installed
           Depends: libpython3-stdlib (= 3.8.2-0ubuntu2) but 3.10.4-0ubuntu2 is installed
 python3-pyqt5.sip : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-renderpm : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-reportlab-accel : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-simplejson : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-sip : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-talloc : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
 python3-yaml : Depends: python3 (>= 3.10~) but 3.8.2-0ubuntu2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

0 Answers0