[Bug 1022384] Re: Upgrade problem, dpkg error & apt-get update leads to error message: libapt-pkg.so.4.12: file too

Adam Conrad adconrad at 0c3.net
Sun Sep 30 02:34:28 UTC 2012


This looks like filesystem corruption or dying hardware.  The part where
bits of it were solved by re-extracting the relevant libraries seems to
back this up.  Marking invalid, as it's not a dpkg bug.

** Changed in: dpkg (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1022384

Title:
  Upgrade problem, dpkg error & apt-get update leads to error message:
  libapt-pkg.so.4.12: file too

Status in “dpkg” package in Ubuntu:
  Invalid

Bug description:
  Hi, I get an error whenever I try to open an application using apt or
  try to install anything & now I want to finding a way to update
  Lubuntu 12.04 with apt. apt-get update leads to error message: libapt-
  pkg.so.4.12: file too short. I'm running Lubuntu 12.04 from a DELTACO
  USB SATA/IDE adapter kit from an USB port. I have tried to repair the
  file system with the fsck tool. I know that running the ext4 file
  system without a journal can cause problems. Other than that the
  system works very well.

  From Terminal:
  Code:
  dmesg | grep EXT4
  [ 3.033062] EXT4-fs (sdb1): mounted filesystem without journal. Opts: (null)
  [ 9.255690] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro

  Update from Terminal:
  Code:
  sudo apt-get update
  apt-get: error while loading shared libraries: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: file too short

  Code:
  sudo apt-get install <package>
  apt-get: error while loading shared libraries: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: file too short

  Code:
  sudo synaptic
  synaptic: error while loading shared libraries: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: file too short

  Code:
  sudo update-manager
  Traceback (most recent call last):
  File "/usr/bin/update-manager", line 33, in <module>
  from UpdateManager.UpdateManager import UpdateManager
  File "/usr/lib/python2.7/dist-packages/UpdateManager/UpdateManager.py", line 39, in <module>
  import apt_pkg
  ImportError: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: fil för kort
  Error in sys.excepthook:
  Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 64, in apport_excepthook
  from apport.fileutils import likely_packaged, get_recent_crashes
  File "/usr/lib/python2.7/dist-packages/apport/__init__.py", line 1, in <module>
  from apport.report import Report
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 20, in <module>
  import apport.fileutils
  File "/usr/lib/python2.7/dist-packages/apport/fileutils.py", line 22, in <module>
  from apport.packaging_impl import impl as packaging
  File "/usr/lib/python2.7/dist-packages/apport/packaging_impl.py", line 20, in <module>
  import apt
  File "/usr/lib/python2.7/dist-packages/apt/__init__.py", line 21, in <module>
  import apt_pkg
  ImportError: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: fil för kort

  Original exception was:
  Traceback (most recent call last):
  File "/usr/bin/update-manager", line 33, in <module>
  from UpdateManager.UpdateManager import UpdateManager
  File "/usr/lib/python2.7/dist-packages/UpdateManager/UpdateManager.py", line 39, in <module>
  import apt_pkg
  ImportError: /usr/lib/i386-linux-gnu/libapt-pkg.so.4.12: fil för kort

  "fil för kort" which means file too short in Swedish.

  I also got: "Ett problem inträffade vid kontroll av uppdateringar."
  which means: A problem occurred when checking for updates.

  Running fsck & e2fsck from Debian 7 "Wheezy" testing, output in Swedish:
  Code:
  root at debian:/# fsck /dev/sdc1
  fsck från util-linux 2.20.1
  e2fsck 1.42.4 (12-Jun-2012)
  /dev/sdc1 var inte fläckfritt avmonterat, kontroll framtvingad.
  Pass 1: Kontrollerar inoder, block och storlekar
  Pass 2: Kontrollerar katalogstruktur
  Pass 3: Kontrollerar katalogförbindelser
  Pass 4: Kontrollerar referensräknare
  Pass 5: Kontrollerar gruppsammanfattningsinformation
  /dev/sdc1: 157422/5431296 filer (0.2% ej sammanhängande), 1632724/21717248 block

  Code:
  root at debian:/# e2fsck -f /dev/sdc1
  e2fsck 1.42.4 (12-Jun-2012)
  Pass 1: Kontrollerar inoder, block och storlekar
  Pass 2: Kontrollerar katalogstruktur
  Pass 3: Kontrollerar katalogförbindelser
  Pass 4: Kontrollerar referensräknare
  Pass 5: Kontrollerar gruppsammanfattningsinformation
  /dev/sdc1: 157422/5431296 filer (0.2% ej sammanhängande), 1632724/21717248 block

  Running from Terminal in Lubuntu 12.04, output in Swedish:

  Code:
  sudo dpkg -i libapt-pkg4.12_0.8.16~exp12ubuntu10_i386.deb
  dpkg: fel: läser paketinfofilen "/var/lib/dpkg/available": Är en katalog

  Source: http://pkgs.org/ubuntu-12.04/ubuntu-main-i386/libapt-
  pkg4.12_0.8.16~exp12ubuntu10_i386.deb/download/

  Code:
  sudo dpkg -i libapt-pkg4.12_0.8.16~exp12ubuntu10.2_i386.deb
  dpkg: fel: läser paketinfofilen "/var/lib/dpkg/available": Är en katalog

  Source: http://packages.ubuntu.com/sv/precise/i386/libapt-
  pkg4.12/download

  Original source by Lyfang (aka Christopher Forster):
  http://ubuntuforums.org/showthread.php?t=2020530

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1022384/+subscriptions




More information about the foundations-bugs mailing list