Package management fails in update-manager with gzip problems and compilation errors. U12.04LTS

Posted by HarveyP on Ask Ubuntu See other posts from Ask Ubuntu or by HarveyP
Published on 2014-06-13T07:43:08Z Indexed on 2014/06/13 9:42 UTC
Read the original article Hit count: 397

Filed under:
|
|
|
|

Similar to but not the same as Package management system corrupted. Cannot install or remove packages. U12.04LTS (an earlier problem) with package management system. Followed all of L. D. James suggestions in his answer to no avail.

This time as well as the gzip error I am also getting compilation errors. The difference may be due to a lack of compilation in my earlier problem so it may be the same error.

The packages concerned are enumerated in the output from update-manager below. Also included below that is the output from apt-get -f install

apt-get autoremove gives same output.

Tried update without SSL updates - 9 to install and got "Unhandled Error in aptdaemon". Output number 3 below.

One at a time - output 4 - is for firefox, first in the list of packages. Falls over at libssl1.0.0 despite deselection of it from update ...

Tried apt-get install --reinstall dpkg which succeeded, apt-get install --reinstall tar and apt-get install --reinstall gzip both of which failed at libssl1.0.0 as ever. (as suggested by Subv3rsion elsewhere in this forum)

Now cannot apt-get update with complete success even after changing server and apt-get clean - output number 5 below ...

1). Output from update-manager

The following packages will be upgraded:<>
  firefox firefox-globalmenu firefox-locale-en libavcodec-extra-53 libavformat53 libavutil-extra-51 libjson0 libpostproc52
  libssl1.0.0 libswscale2 openssl
11 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.<br>
Need to get 0 B/46.5 MB of archives.
After this operation, 1,416 kB of additional disk space will be used.<br>
Do you want to continue [Y/n]? y
debconf: Perl may be unconfigured (Bareword "gensym" not allowed while "strict subs" in use at /usr/lib/perl/5.14/IO/Handle.pm line 67.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl/5.14/IO/Handle.pm line 366.
Compilation failed in require at /usr/lib/perl/5.14/IO/Seekable.pm line 9.
BEGIN failed--compilation aborted at /usr/lib/perl/5.14/IO/Seekable.pm line 9.
Compilation failed in require at /usr/lib/perl/5.14/IO/File.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl/5.14/IO/File.pm line 11.
Compilation failed in require at /usr/share/perl/5.14/FileHandle.pm line 9.
Compilation failed in require at (eval 1) line 3.
BEGIN failed--compilation aborted at (eval 1) line 3.
) -- aborting
(Reading database ... 160575 files and directories currently installed.)
Preparing to replace libssl1.0.0 1.0.1-4ubuntu5.14 (using .../libssl1.0.0_1.0.1-4ubuntu5.15_i386.deb) ...
Unpacking replacement libssl1.0.0 ...
dpkg-deb (subprocess): data: internal gzip read error: '<fd:4>: data error'
dpkg-deb: error: subprocess <decompress> returned error exit status 2
dpkg: error processing /var/cache/apt/archives/libssl1.0.0_1.0.1-4ubuntu5.15_i386.deb (--unpack):<br>
 subprocess dpkg-deb --fsys-tarfile returned error exit status 2
No apport report written because MaxReports has already been reached
Bareword "gensym" not allowed while "strict subs" in use at /usr/lib/perl/5.14/IO/Handle.pm line 67.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl/5.14/IO/Handle.pm line 366.
Compilation failed in require at /usr/lib/perl/5.14/IO/Seekable.pm line 9.
BEGIN failed--compilation aborted at /usr/lib/perl/5.14/IO/Seekable.pm line 9.
Compilation failed in require at /usr/lib/perl/5.14/IO/File.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl/5.14/IO/File.pm line 11.
Compilation failed in require at /usr/share/perl/5.14/FileHandle.pm line 9.
Compilation failed in require at /usr/share/perl5/Debconf/Template.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.
Compilation failed in require at /usr/share/perl5/Debconf/Db.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Db.pm line 7.
Compilation failed in require at /usr/share/debconf/frontend line 6.
BEGIN failed--compilation aborted at /usr/share/debconf/frontend line 6.
dpkg: error whale cleanang up:
 subprgcess installed post-installation script returned error exit status 2
Errors were encountered while processing:
 /var/cache/apt/archives/libssl1.0.0_1.0.1-4ubuntu5.15_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

2). Output from install -f

harveyp@harveyp:~$ sudo apt-get -f install
[sudo] password for harveyp: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 to upgrade, 0 to newly install, 0 to remove and 11 not to upgrade.
1 not fully installed or removed.<br>
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for libssl1.0.0

3). Unhandled error from aptdaemon

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1045, in _simulate
    trans.unauthenticated = self.__simulate(trans)
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1160, in __simulate
    unauthenticated = self._get_unauthenticated()
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 347, in _get_unauthenticated
    for pkg in self._iterate_packages():
  File "/usr/lib/python2.7/dist-packages/aptdaemon/worker.py", line 1356, in _iterate_packages
    for enum, pkg in enumerate(self._cache):
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 216, in __iter__
    yield self[pkgname]
  File "/usr/lib/python2.7/dist-packages/apt/cache.py", line 201, in __getitem__
    pkg = self._weakref[key] = Package(self, self._cache[key])
KeyError: 'librqrcode-rubq-doc

4). output from update of firefox

installArchives() failed: Error in function: <
Setting up libssl1.0.0 (1.0.1-4ubuntu5.14) ...
Bareword "gensym" not allowed while "strict subs" in use at /usr/lib/perl/5.14/IO/Handle.pm line 67.
BEGIN not safe after errors--compilation aborted at /usr/lib/perl/5.14/IO/Handle.pm line 366.
Compilation failed in require at /usr/lib/perl/5.14/IO/Seekable.pm line 9.
BEGIN failed--compilation aborted at /usr/lib/perl/5.14/IO/Seekable.pm line 9.
Compilation failed in require at /usr/lib/perl/5.14/IO/File.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl/5.14/IO/File.pm line 11.
Compilation failed in require at /usr/share/perl/5.14/FileHandle.pm line 9.
Compilation failed in require at /usr/share/perl5/Debconf/Template.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Template.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Question.pm line 8.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Question.pm line 8.
Compilation failed in require at /usr/share/perl5/Debconf/Config.pm line 7.
BEGIN failed--compilation aborted at /usr/share/perl5/Debconf/Config.pm line 7.
Compilation failed in require at /usr/share/perl5/Debconf/Log.pm line 10.

5. output from apt-get update

...snip ...
Hit http://ubuntu-archive.mirrors.free.org precise-security/multiverse Translation-en
Hit http://ubuntu-archive.mirrors.free.org precise-security/restricted Translation-en
Hit http://ubuntu-archive.mirrors.free.org precise-security/universe Translation-en
Fetched 368 kB in 6s (59.5 kB/s)

W: Failed to fetch gzip:/var/lib/apt/lists/partial/ubuntu-archive.mirrors.free.org_ubuntu_dists_precise_universe_source_Sources Hash Sum mismatch

E: Some index files failed to download. They have been ignored, or old ones used instead.

© Ask Ubuntu or respective owner

Related posts about 12.04

Related posts about updates