Thursday, July 25, 2024

ubuntu 7 esm-apps security updates install error

 cannot find a solution for these install errors 


You have severe damage of your system. Below is the possible way to fix this situation on low level:
# create missed dpkg info directory
sudo mkdir /var/lib/dpkg/info/

# create missed dpkg alternatives directory
sudo mkdir /var/lib/dpkg/alternatives

# recreate other directories as well
sudo mkdir /var/lib/dpkg/{parts,triggers,updates}

# update package lists
sudo apt-get update

# install missed debconf package
sudo apt-get install debconf

# reinstall all currently installed packages to correctly fill /var/lib/dpkg/info/
sudo apt-get install --reinstall $(dpkg -l | grep ^ii | awk '{print $2}')

7 esm-apps security updates

Need to get 0 B/3,968 kB of archives.

After this operation, 0 B of additional disk space will be used.

debconf: apt-extracttemplates failed: No such file or directory

tar: This does not look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /tmp/apt-dpkg-install-C5X27g/0-libcdt5_2.42.2-6ub

untu0.1+esm1_amd64.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

tar: This does not look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /tmp/apt-dpkg-install-C5X27g/1-libcgraph6_2.42.2-

6ubuntu0.1+esm1_amd64.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

tar: This does not look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /tmp/apt-dpkg-install-C5X27g/2-libpathplan4_2.42.

2-6ubuntu0.1+esm1_amd64.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

tar: This does not look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /tmp/apt-dpkg-install-C5X27g/3-libgvc6_2.42.2-6ub

untu0.1+esm1_amd64.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

No apport report written because MaxReports is reached already

                                                              tar: This does not

 look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /tmp/apt-dpkg-install-C5X27g/4-libgvpr2_2.42.2-6u

buntu0.1+esm1_amd64.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

No apport report written because MaxReports is reached already

                                                              tar: This does not

 look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /tmp/apt-dpkg-install-C5X27g/5-liblab-gamut1_2.42

.2-6ubuntu0.1+esm1_amd64.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

No apport report written because MaxReports is reached already

                                                              tar: This does not

 look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /tmp/apt-dpkg-install-C5X27g/6-graphviz_2.42.2-6u

buntu0.1+esm1_amd64.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

No apport report written because MaxReports is reached already

                                                              tar: This does not

 look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /tmp/apt-dpkg-install-C5X27g/7-ldap-utils_2.5.18+

dfsg-0ubuntu0.22.04.2_amd64.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

No apport report written because MaxReports is reached already

                                                              tar: This does not

 look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /tmp/apt-dpkg-install-C5X27g/8-libldap-2.5-0_2.5.

18+dfsg-0ubuntu0.22.04.2_amd64.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

No apport report written because MaxReports is reached already

                                                              tar: This does not

 look like a tar archive

tar: Exiting with failure status due to previous errors

dpkg-deb: error: tar subprocess returned error exit status 2

dpkg: error processing archive /tmp/apt-dpkg-install-C5X27g/9-libldap-common_2.5

.18+dfsg-0ubuntu0.22.04.2_all.deb (--unpack):

 dpkg-deb --control subprocess returned error exit status 2

No apport report written because MaxReports is reached already

                                                              Errors were encoun

tered while processing:

 /tmp/apt-dpkg-install-C5X27g/0-libcdt5_2.42.2-6ubuntu0.1+esm1_amd64.deb

 /tmp/apt-dpkg-install-C5X27g/1-libcgraph6_2.42.2-6ubuntu0.1+esm1_amd64.deb

 /tmp/apt-dpkg-install-C5X27g/2-libpathplan4_2.42.2-6ubuntu0.1+esm1_amd64.deb

 /tmp/apt-dpkg-install-C5X27g/3-libgvc6_2.42.2-6ubuntu0.1+esm1_amd64.deb

 /tmp/apt-dpkg-install-C5X27g/4-libgvpr2_2.42.2-6ubuntu0.1+esm1_amd64.deb

 /tmp/apt-dpkg-install-C5X27g/5-liblab-gamut1_2.42.2-6ubuntu0.1+esm1_amd64.deb

 /tmp/apt-dpkg-install-C5X27g/6-graphviz_2.42.2-6ubuntu0.1+esm1_amd64.deb

 /tmp/apt-dpkg-install-C5X27g/7-ldap-utils_2.5.18+dfsg-0ubuntu0.22.04.2_amd64.de

b

 /tmp/apt-dpkg-install-C5X27g/8-libldap-2.5-0_2.5.18+dfsg-0ubuntu0.22.04.2_amd64

.deb

 /tmp/apt-dpkg-install-C5X27g/9-libldap-common_2.5.18+dfsg-0ubuntu0.22.04.2_all.

deb

E: Sub-process /usr/bin/dpkg returned an error code (1)

Checking for a new Ubuntu release

There is no development version of an LTS available.

To upgrade to the latest non-LTS development release 

set Prompt=normal in /etc/update-manager/release-upgrades.



Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libcdt5 amd64 2.42.2-6ubuntu0.1 [21.1 kB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libcgraph6 amd64 2.42.2-6ubuntu0.1 [45.4 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libpathplan4 amd64 2.42.2-6ubuntu0.1 [23.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libgvc6 amd64 2.42.2-6ubuntu0.1 [724 kB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 libgvpr2 amd64 2.42.2-6ubuntu0.1 [192 kB]
Get:6 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 liblab-gamut1 amd64 2.42.2-6ubuntu0.1 [1,965 kB]
Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 graphviz amd64 2.42.2-6ubuntu0.1 [653 kB]
Fetched 3,624 kB in 6s (655 kB/s) 
debconf: apt-extracttemplates failed: No such file or directory
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-LPaIL5/0-libcdt5_2.42.2-6ubuntu0.1_amd64.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-LPaIL5/1-libcgraph6_2.42.2-6ubuntu0.1_amd64.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-LPaIL5/2-libpathplan4_2.42.2-6ubuntu0.1_amd64.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-LPaIL5/3-libgvc6_2.42.2-6ubuntu0.1_amd64.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
No apport report written because MaxReports is reached already
                                                              tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-LPaIL5/4-libgvpr2_2.42.2-6ubuntu0.1_amd64.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
No apport report written because MaxReports is reached already
                                                              tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-LPaIL5/5-liblab-gamut1_2.42.2-6ubuntu0.1_amd64.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
No apport report written because MaxReports is reached already
                                                              tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
No apport report written because MaxReports is reached already
                                                              dpkg: error processing archive /tmp/apt-dpkg-install-LPaIL5/6-graphviz_2.42.2-6ubuntu0.1_amd64.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-LPaIL5/7-ldap-utils_2.5.18+dfsg-0ubuntu0.22.04.2_amd64.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
No apport report written because MaxReports is reached already
                                                              tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-LPaIL5/8-libldap-2.5-0_2.5.18+dfsg-0ubuntu0.22.04.2_amd64.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
No apport report written because MaxReports is reached already
                                                              tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
dpkg-deb: error: tar subprocess returned error exit status 2
dpkg: error processing archive /tmp/apt-dpkg-install-LPaIL5/9-libldap-common_2.5.18+dfsg-0ubuntu0.22.04.2_all.deb (--unpack):
 dpkg-deb --control subprocess returned error exit status 2
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 /tmp/apt-dpkg-install-LPaIL5/0-libcdt5_2.42.2-6ubuntu0.1_amd64.deb
 /tmp/apt-dpkg-install-LPaIL5/1-libcgraph6_2.42.2-6ubuntu0.1_amd64.deb
 /tmp/apt-dpkg-install-LPaIL5/2-libpathplan4_2.42.2-6ubuntu0.1_amd64.deb
 /tmp/apt-dpkg-install-LPaIL5/3-libgvc6_2.42.2-6ubuntu0.1_amd64.deb
 /tmp/apt-dpkg-install-LPaIL5/4-libgvpr2_2.42.2-6ubuntu0.1_amd64.deb
 /tmp/apt-dpkg-install-LPaIL5/5-liblab-gamut1_2.42.2-6ubuntu0.1_amd64.deb
 /tmp/apt-dpkg-install-LPaIL5/6-graphviz_2.42.2-6ubuntu0.1_amd64.deb
 /tmp/apt-dpkg-install-LPaIL5/7-ldap-utils_2.5.18+dfsg-0ubuntu0.22.04.2_amd64.deb
 /tmp/apt-dpkg-install-LPaIL5/8-libldap-2.5-0_2.5.18+dfsg-0ubuntu0.22.04.2_amd64.deb
 /tmp/apt-dpkg-install-LPaIL5/9-libldap-common_2.5.18+dfsg-0ubuntu0.22.04.2_all.deb


sudo apt-get install --reinstall $(dpkg -l | grep ^ii | awk '{print $2}')
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Reinstallation of firmware-sof-signed is not possible, it cannot be downloaded.
Reinstallation of google-chrome-stable is not possible, it cannot be downloaded.
Reinstallation of ipscan is not possible, it cannot be downloaded.
Reinstallation of libavcodec58 is not possible, it cannot be downloaded.
Reinstallation of libavformat58 is not possible, it cannot be downloaded.
Reinstallation of libavutil56 is not possible, it cannot be downloaded.
Reinstallation of libde265-0 is not possible, it cannot be downloaded.
Reinstallation of libheif1 is not possible, it cannot be downloaded.
Reinstallation of libopenexr25 is not possible, it cannot be downloaded.
Reinstallation of libsepol1 is not possible, it cannot be downloaded.
Reinstallation of libswresample3 is not possible, it cannot be downloaded.
Reinstallation of libswscale5 is not possible, it cannot be downloaded.
Reinstallation of metasploit-framework is not possible, it cannot be downloaded.
Reinstallation of realvnc-vnc-viewer:i386 is not possible, it cannot be downloaded.
Suggested packages:
  gsfonts graphviz-doc
The following packages will be upgraded:
  graphviz ldap-utils libcdt5 libcgraph6 libgvc6 libgvpr2 liblab-gamut1 libldap-2.5-0 libldap-common libpathplan4
10 upgraded, 0 newly installed, 1857 reinstalled, 0 to remove and 0 not upgraded.
Need to get 1,927 MB/1,931 MB of archives.
After this operation, 0 B of additional disk space will be used.