Bug#595962: /usr/bin/apt-get: apt-get install crashing the PC :(
Package: apt
Version: 0.8.0
Severity: normal
File: /usr/bin/apt-get
debconf: apt-extracttemplates failed: Bad file descriptor
dpkg-deb: `/var/cache/apt/archives/libglib-perl_2%3a1.223-1_i386.deb' is not a debian format archive
dpkg: error processing /var/cache/apt/archives/libglib-perl_2%3a1.223-1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
configured to not write apport reports
dpkg-deb: `/var/cache/apt/archives/libgtk2-perl_2%3a1.222-1_i386.deb' is not a debian format archive
dpkg: error processing /var/cache/apt/archives/libgtk2-perl_2%3a1.222-1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
configured to not write apport reports
Errors were encountered while processing:
/var/cache/apt/archives/libglib-perl_2%3a1.223-1_i386.deb
/var/cache/apt/archives/libgtk2-perl_2%3a1.222-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@toshiba:~# apt-get install rsync
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
libgnome2-canvas-perl : Depends: libglib-perl (>= 1.040) but it is not going to be installed
Depends: libgtk2-perl (>= 1.040) but it is not going to be installed
libgnome2-perl : Depends: libglib-perl (>= 1.040) but it is not going to be installed
Depends: libgtk2-perl (>= 1.00) but it is not going to be installed
libgnome2-vfs-perl : Depends: libglib-perl (>= 1:1.120) but it is not going to be installed
libpango-perl : Depends: libglib-perl (>= 1.220) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
root@toshiba:~# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
libglib-perl libgtk2-perl
Suggested packages:
libgtk2-perl-doc
The following NEW packages will be installed:
libglib-perl libgtk2-perl
0 upgraded, 2 newly installed, 0 to remove and 176 not upgraded.
49 not fully installed or removed.
Need to get 0B/1,672kB of archives.
After this operation, 5,214kB of additional disk space will be used.
Do you want to continue [Y/n]? y
E: Invalid archive signature
E: Prior errors apply to /var/cache/apt/archives/libglib-perl_2%3a1.223-1_i386.deb
E: Invalid archive signature
E: Prior errors apply to /var/cache/apt/archives/libgtk2-perl_2%3a1.222-1_i386.deb
debconf: apt-extracttemplates failed: Bad file descriptor
dpkg-deb: `/var/cache/apt/archives/libglib-perl_2%3a1.223-1_i386.deb' is not a debian format archive
dpkg: error processing /var/cache/apt/archives/libglib-perl_2%3a1.223-1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
configured to not write apport reports
dpkg-deb: `/var/cache/apt/archives/libgtk2-perl_2%3a1.222-1_i386.deb' is not a debian format archive
dpkg: error processing /var/cache/apt/archives/libgtk2-perl_2%3a1.222-1_i386.deb (--unpack):
subprocess dpkg-deb --control returned error exit status 2
configured to not write apport reports
Errors were encountered while processing:
/var/cache/apt/archives/libglib-perl_2%3a1.223-1_i386.deb
/var/cache/apt/archives/libgtk2-perl_2%3a1.222-1_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
Hello,
I encounter this issue. Now hte whole pc is kind of not wokring :(
It is several times that apt-get mess the whole pc; and it would be great to fix it, becaues it takes time to reinstall everyting
fixing is not possible :(
best regards
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Acquire "";
APT::Acquire::Translation "environment";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "/var/lib/apt/extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Media "";
Dir::Media::MountPath "/media/apt";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
CommandLine "";
CommandLine::AsString "apt-config dump";
-- (no /etc/apt/preferences present) --
-- /etc/apt/sources.list --
#
# deb cdrom:[Debian GNU/Linux testing _Squeeze_ - Official Snapshot i386 NETINST Binary-1 20100513-16:42]/ squeeze main
#deb cdrom:[Debian GNU/Linux testing _Squeeze_ - Official Snapshot i386 NETINST Binary-1 20100513-16:42]/ squeeze main
deb http://ftp.at.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.at.debian.org/debian/ squeeze main
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
deb http://www.debian-multimedia.org squeeze main non-free
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt depends on:
ii debian-archive-keyring 2009.01.31 GnuPG archive keys of the Debian a
ii gnupg 1.4.10-4 GNU privacy guard - a free PGP rep
ii libc6 2.11.2-2 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.4.4-7 GCC support library
ii libstdc++6 4.4.4-7 The GNU Standard C++ Library v3
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none> (no description available)
pn aptitude | synaptic | wajig <none> (no description available)
ii bzip2 1.0.5-4 high-quality block-sorting file co
pn dpkg-dev <none> (no description available)
ii lzma 4.43-14 Compression method of 7z format in
pn python-apt <none> (no description available)
-- no debconf information
Reply to: