Score:0

How to fix dpkg: error processing archive /var/cache/apt/archives/unzip_6.0-26ubuntu3.1_amd 64.deb (--unpack):

np flag

After I run the command md@md-hp-laptop-15s-du3xxx:~$ sudo apt --fix-broken install

I get

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  app-install-data-partner g++-9 gir1.2-appindicator3-0.1 gir1.2-clutter-1.0
  gir1.2-clutter-gst-3.0 gir1.2-cogl-1.0 gir1.2-coglpango-1.0
  gir1.2-gnomebluetooth-1.0 gir1.2-gtkclutter-1.0 gnome-screenshot libamtk-5-0
  libamtk-5-common libdbus-glib-1-dev libdbus-glib-1-dev-bin
  libdbusmenu-glib-dev libdns-export1109 libextutils-pkgconfig-perl
  libgl1-mesa-dev libgphoto2-l10n libgupnp-1.2-0 libhijk-perl libmozjs-68-0
  libntfs-3g883 libpango-perl libpcre2-posix2 libperl5.30 libphonenumber7
  libprotobuf17 libqpdf26 libsnmp35 libstdc++-9-dev libtepl-4-0
  libtracker-control-2.0-0 libtracker-miner-2.0-0 lz4 python3-packaging
  python3-pyparsing vino x11proto-input-dev x11proto-randr-dev
  x11proto-xinerama-dev
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libgupnp-av-1.0-3 libgupnp-dlna-2.0-4 librygel-db-2.6-2 unzip
The following packages will be REMOVED:
  libgupnp-av-1.0-2 libgupnp-dlna-2.0-3
The following NEW packages will be installed:
  libgupnp-av-1.0-3 libgupnp-dlna-2.0-4
The following packages will be upgraded:
  librygel-db-2.6-2 unzip
2 upgraded, 2 newly installed, 2 to remove and 1139 not upgraded.
12 not fully installed or removed.
Need to get 0 B/336 kB of archives.
After this operation, 187 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 297284 files and directories currently installed.)
Preparing to unpack .../unzip_6.0-26ubuntu3.1_amd64.deb ...
Unpacking unzip (6.0-26ubuntu3.1) over (6.0-25ubuntu1.1) ...
Deep recursion on subroutine "main::RecurseIntoDirectories" at /usr/sbin/update-
mime line 124.
Deep recursion on subroutine "main::RecurseIntoDirectories" at /usr/sbin/update-
mime line 124.
Deep recursion on subroutine "main::RecurseIntoDirectories" at /usr/sbin/update-
mime line 124.
"main::RecurseIntoDirectories" at /usr/sbin/update-
mime line 124.
Deep recursion on subroutine "main::RecurseIntoDirectories" at /usr/sbin/update-
mime line 124.
dpkg: error while cleaning up:
 new unzip package post-removal script subprocess returned error exit status 137
Errors were encountered while processing:
 /var/cache/apt/archives/unzip_6.0-26ubuntu3.1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
md@md-hp-laptop-15s-du3xxx:~$ 
.

I thought let's go that particular location of mime, I did and it shows this

sub RecurseIntoDirectories
{
    my @files;
    foreach my $dir (@_) {
        next if ($dir =~ m!(^|/)(\.|\#)|(\~)$!);
        my @entries = glob "$dir/*";
        push @files, RecurseIntoDirectories(grep { -d $_ } @entries);
        push @files, grep { -f $_ } @entries;
    }
    return @files;
}

sub ReadDesktopEntries
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.