Score:0

Unable to install any software or upgrade in ubuntu 20.04 (unmet dependencies error)

it flag

When I am trying to upgrade/ install(any software). I am facing below error

$ sudo apt-get 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:
 gnupg : Depends: dirmngr (>= 2.2.19-3ubuntu2.2) but 2.2.19-3ubuntu2.1 is installed
         Depends: gnupg-utils (>= 2.2.19-3ubuntu2.2) but 2.2.19-3ubuntu2.1 is installed
         Depends: gpg (>= 2.2.19-3ubuntu2.2) but 2.2.19-3ubuntu2.1 is installed
         Depends: gpg-agent (>= 2.2.19-3ubuntu2.2) but 2.2.19-3ubuntu2.1 is installed
         Depends: gpg-wks-server (>= 2.2.19-3ubuntu2.2) but 2.2.19-3ubuntu2.1 is installed
         Depends: gpgsm (>= 2.2.19-3ubuntu2.2) but 2.2.19-3ubuntu2.1 is installed
         Depends: gpgv (>= 2.2.19-3ubuntu2.2) but 2.2.19-3ubuntu2.1 is installed
         Breaks: dirmngr (< 2.2.19-3ubuntu2.2) but 2.2.19-3ubuntu2.1 is installed
 gpg-wks-client : Depends: dirmngr (= 2.2.19-3ubuntu2.2) but 2.2.19-3ubuntu2.1 is installed
                  Depends: gpg (= 2.2.19-3ubuntu2.2) but 2.2.19-3ubuntu2.1 is installed
                  Depends: gpg-agent (= 2.2.19-3ubuntu2.2) but 2.2.19-3ubuntu2.1 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

And after doing below command

$ sudo apt --fix-broken install 

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  dirmngr gnupg-utils gpg gpg-agent gpg-wks-server gpgconf gpgsm gpgv
Suggested packages:
  tor scdaemon
The following packages will be upgraded:
  dirmngr gnupg-utils gpg gpg-agent gpg-wks-server gpgconf gpgsm gpgv
8 upgraded, 0 newly installed, 0 to remove and 338 not upgraded.
2 not fully installed or removed.
Need to get 0 B/2155 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
(Reading database ... 171614 files and directories currently installed.)
Preparing to unpack .../0-gpgsm_2.2.19-3ubuntu2.2_amd64.deb ...
Unpacking gpgsm (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-HArLQk/0-gpgsm_2.2.19-3ubuntu2.2_amd64.deb (--unpack):
 unable to create '/usr/bin/gpgsm.dpkg-new' (while processing './usr/bin/gpgsm'): Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../1-gpg-wks-server_2.2.19-3ubuntu2.2_amd64.deb ...
Unpacking gpg-wks-server (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-HArLQk/1-gpg-wks-server_2.2.19-3ubuntu2.2_amd64.deb (--unpack):
 unable to create '/usr/bin/gpg-wks-server.dpkg-new' (while processing './usr/bin/gpg-wks-server'): Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../2-gpg_2.2.19-3ubuntu2.2_amd64.deb ...
Unpacking gpg (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-HArLQk/2-gpg_2.2.19-3ubuntu2.2_amd64.deb (--unpack):
 unable to create '/usr/bin/gpg.dpkg-new' (while processing './usr/bin/gpg'): Operation not permitted
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../3-gnupg-utils_2.2.19-3ubuntu2.2_amd64.deb ...
Unpacking gnupg-utils (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-HArLQk/3-gnupg-utils_2.2.19-3ubuntu2.2_amd64.deb (--unpack):
 unable to create '/usr/bin/gpg-zip.dpkg-new' (while processing './usr/bin/gpg-zip'): Operation not permitted
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../4-dirmngr_2.2.19-3ubuntu2.2_amd64.deb ...
Unpacking dirmngr (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-HArLQk/4-dirmngr_2.2.19-3ubuntu2.2_amd64.deb (--unpack):
 unable to create '/usr/bin/dirmngr.dpkg-new' (while processing './usr/bin/dirmngr'): Operation not permitted
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../5-gpgconf_2.2.19-3ubuntu2.2_amd64.deb ...
Unpacking gpgconf (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-HArLQk/5-gpgconf_2.2.19-3ubuntu2.2_amd64.deb (--unpack):
 unable to create '/usr/bin/gpg-connect-agent.dpkg-new' (while processing './usr/bin/gpg-connect-agent'): Operation not permitted
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../6-gpg-agent_2.2.19-3ubuntu2.2_amd64.deb ...
Unpacking gpg-agent (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-HArLQk/6-gpg-agent_2.2.19-3ubuntu2.2_amd64.deb (--unpack):
 unable to create '/usr/bin/gpg-agent.dpkg-new' (while processing './usr/bin/gpg-agent'): Operation not permitted
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../7-gpgv_2.2.19-3ubuntu2.2_amd64.deb ...
Unpacking gpgv (2.2.19-3ubuntu2.2) over (2.2.19-3ubuntu2.1) ...
dpkg: error processing archive /tmp/apt-dpkg-install-HArLQk/7-gpgv_2.2.19-3ubuntu2.2_amd64.deb (--unpack):
 unable to create '/usr/bin/gpgv.dpkg-new' (while processing './usr/bin/gpgv'): Operation not permitted
No apport report written because MaxReports is reached already
                                                              dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Errors were encountered while processing:
 /tmp/apt-dpkg-install-HArLQk/0-gpgsm_2.2.19-3ubuntu2.2_amd64.deb
 /tmp/apt-dpkg-install-HArLQk/1-gpg-wks-server_2.2.19-3ubuntu2.2_amd64.deb
 /tmp/apt-dpkg-install-HArLQk/2-gpg_2.2.19-3ubuntu2.2_amd64.deb
 /tmp/apt-dpkg-install-HArLQk/3-gnupg-utils_2.2.19-3ubuntu2.2_amd64.deb
 /tmp/apt-dpkg-install-HArLQk/4-dirmngr_2.2.19-3ubuntu2.2_amd64.deb
 /tmp/apt-dpkg-install-HArLQk/5-gpgconf_2.2.19-3ubuntu2.2_amd64.deb
 /tmp/apt-dpkg-install-HArLQk/6-gpg-agent_2.2.19-3ubuntu2.2_amd64.deb
 /tmp/apt-dpkg-install-HArLQk/7-gpgv_2.2.19-3ubuntu2.2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

I dont understand what is the problem and not able to fix this problem. Can anyone help me on same.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.