Re: apt-get upgrade error: package `coreutils' contains empty filename ?
I'm not too worried about losing anything. It's an embedded device which runs off a flash drive, and its only purpose is to act as a file server for a mounted USB drive. I've checked the drive and it's fine, but its entirely possible the flash drive has been corrupted. # cat /var/lib/dpkg/info/wamerican.postinst #!/bin/sh set -e # Automatically added by installdeb-wordlist . /usr/share/debconf/confmodule SCRIPT=/usr/sbin/update-default-wordlist if [ $1 = configure ] ; then if [ -x $SCRIPT ]; then $SCRIPT --rebuild else echo Error: $SCRIPT not present or executable. Missing dependency on dictionaries-common? 2 exit 1 fi fi # End automatically added section On Sun, Jan 18, 2009 at 11:14 PM, Daniel Burrows dburr...@debian.org wrote: On Sun, Jan 18, 2009 at 07:37:29PM -0800, Eric Higgins erichigg...@gmail.com was heard to say: Ah ha, now we are getting somewhere: It looks like the coreutils.list file has a script instead of a filelist. How do I go about fixing this for my system? It looks like it got replaced by the postinst for wamerican. You could just replace it with an empty file and then reinstall coreutils, but you should be aware that this is probably some sort of filesystem corruption. It's possible that this is the only thing that's wrong and that you won't see any more problems, but I wouldn't count on it. It's probably a good idea to back up any important data just in case the situation gets worse. Just out of curiosity: what happened to the postinst for wamerican? It should be /var/lib/dpkg/info/wamerican.postinst. Daniel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: apt-get upgrade error: package `coreutils' contains empty filename ?
I've pulled the flash drive, and ran e2fsck on it, correcting the errors that it found. I also emptied out a number of corrupt .list files, as suggested earlier. This is the error I get now: # apt-get --reinstall install coreutils Reading package lists... Done Building dependency tree... Done 0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 60 not upgraded. 1 not fully installed or removed. Need to get 0B/3181kB of archives. After unpacking 0B of additional disk space will be used. Do you want to continue [Y/n]? (Reading database ... 21229 files and directories currently installed.) Preparing to replace coreutils 5.97-5.3 (using .../coreutils_5.97-5.3_arm.deb) ... Unpacking replacement coreutils ... dpkg: error processing /var/cache/apt/archives/coreutils_5.97-5.3_arm.deb (--unpack): unable to install (supposed) new info file `/var/lib/dpkg/tmp.ci/md5sums': Is a directory Errors were encountered while processing: /var/cache/apt/archives/coreutils_5.97-5.3_arm.deb E: Sub-process /usr/bin/dpkg returned an error code (1) On Mon, Jan 19, 2009 at 7:14 AM, Eric Higgins erichigg...@gmail.com wrote: I'm not too worried about losing anything. It's an embedded device which runs off a flash drive, and its only purpose is to act as a file server for a mounted USB drive. I've checked the drive and it's fine, but its entirely possible the flash drive has been corrupted. # cat /var/lib/dpkg/info/wamerican.postinst #!/bin/sh set -e # Automatically added by installdeb-wordlist . /usr/share/debconf/confmodule SCRIPT=/usr/sbin/update-default-wordlist if [ $1 = configure ] ; then if [ -x $SCRIPT ]; then $SCRIPT --rebuild else echo Error: $SCRIPT not present or executable. Missing dependency on dictionaries-common? 2 exit 1 fi fi # End automatically added section On Sun, Jan 18, 2009 at 11:14 PM, Daniel Burrows dburr...@debian.org wrote: On Sun, Jan 18, 2009 at 07:37:29PM -0800, Eric Higgins erichigg...@gmail.com was heard to say: Ah ha, now we are getting somewhere: It looks like the coreutils.list file has a script instead of a filelist. How do I go about fixing this for my system? It looks like it got replaced by the postinst for wamerican. You could just replace it with an empty file and then reinstall coreutils, but you should be aware that this is probably some sort of filesystem corruption. It's possible that this is the only thing that's wrong and that you won't see any more problems, but I wouldn't count on it. It's probably a good idea to back up any important data just in case the situation gets worse. Just out of curiosity: what happened to the postinst for wamerican? It should be /var/lib/dpkg/info/wamerican.postinst. Daniel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: apt-get upgrade error: package `coreutils' contains empty filename ?
Still no luck on this. I can't even seem to force dpkg to upgrade: # apt-get -fm install dpkg Reading package lists... Done Building dependency tree... Done Suggested packages: lzma The following packages will be upgraded: dpkg 1 upgraded, 0 newly installed, 0 to remove and 59 not upgraded. Need to get 0B/2039kB of archives. After unpacking 0B of additional disk space will be used. (Reading database ... dpkg: error processing /var/cache/apt/archives/dpkg_1.13.26_arm.deb (--unpack): files list file for package `coreutils' contains empty filename Errors were encountered while processing: /var/cache/apt/archives/dpkg_1.13.26_arm.deb Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1) On Sat, Jan 17, 2009 at 7:10 PM, Eric Higgins erichigg...@gmail.com wrote: Tried that, here are the results. I'm not sure what the difference is between apt-get and aptitude. It seems like it may be trying to remove some things I may need for my system, since it's an ARM based device. # aptitude upgrade Reading package lists... Done Building dependency tree... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done Building tag database... Done The following packages are unused and will be REMOVED: apex-nslu2 aptitude at bc bind9-host catsboot dc devio dhcp3-client dhcp3-common dictionaries-common dnsutils doc-debian doc-linux-text dselect ed finger flash-kernel ftp gettext-base groff-base iamerican ibritish info installation-report iptables ispell klogd laptop-detect less libasn1-6-heimdal libbind9-0 libconsole libcupsys2 libdns22 libedit2 libevent1 libgc1c2 libgssapi2 libgssapi4-heimdal libisc11 libisccc0 libisccfg1 libkrb5-17-heimdal liblwres9 libnfsidmap2 libpci2 libroken16-heimdal librpcsecgss3 libsasl2 libsemanage1 libslp1 locales lsof m4 man-db manpages mpack mtools mtr-tiny mutt nano ncurses-term netcat nslu2-utils ntpdate openssh-client openssh-server patch pciutils pidentd policycoreutils portmap procmail procps python python-central python-minimal python-newt python-selinux python-semanage python-support python2.4 python2.4-minimal reportbug samba samba-common samba-doc selinux-policy-refpolicy-targeted sharutils slugimage smbclient smbfs strace swat sysklogd tasksel tasksel-data tcsh telnet texinfo time traceroute ucf usbutils w3m wamerican wget whois winbind The following packages will be upgraded: avahi-daemon cpio dbus debconf debconf-i18n dpkg initramfs-tools initscripts libavahi-client3 libavahi-common-data libavahi-common3 libavahi-compat-howl0 libavahi-core4 libc6 libdbus-1-3 libfreetype6 libgnutls13 libkrb53 libpcre3 libssl0.9.8 libvorbis0a libvorbisenc2 libvorbisfile3 linux-image-2.6.18-6-ixp4xx mt-daapd openssl perl perl-base perl-modules rsync sysv-rc sysvinit sysvinit-utils tzdata The following packages are RECOMMENDED but will NOT be installed: libnss-mdns perl-doc psmisc 34 packages upgraded, 0 newly installed, 110 to remove and 0 not upgraded. Need to get 2039kB/27.5MB of archives. After unpacking 163MB will be freed. Do you want to continue? [Y/n/?] Writing extended state information... Done Get:1 http://linux.csua.berkeley.edu etch/main dpkg 1.13.26 [2039kB] Fetched 2039kB in 10s (195kB/s) Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... dpkg: error processing apex-nslu2 (--remove): files list file for package `coreutils' contains empty filename Errors were encountered while processing: apex-nslu2 Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1) A package failed to install. Trying to recover: On Sat, Jan 17, 2009 at 12:59 PM, subscriptions subscripti...@rdegraaf.nl wrote: On Sat, 2009-01-17 at 21:33 +0100, Eric Higgins wrote: # apt-get upgrade ... Preconfiguring packages ... (Reading database ... dpkg: error processing /var/cache/apt/archives/dpkg_1.13.26_arm.deb (--unpack): files list file for package `coreutils' contains empty filename Errors were encountered while processing: /var/cache/apt/archives/dpkg_1.13.26_arm.deb Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1) Try to remove /var/cache/apt/archives/dpkg_1.13.26_arm.deb and try again with: aptitude update aptitude safe-upgrade Best, Rob -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: apt-get upgrade error: package `coreutils' contains empty filename ?
On Sun, Jan 18, 2009 at 04:35:37PM -0800, Eric Higgins erichigg...@gmail.com was heard to say: Still no luck on this. I can't even seem to force dpkg to upgrade: # apt-get -fm install dpkg Reading package lists... Done Building dependency tree... Done Suggested packages: lzma The following packages will be upgraded: dpkg 1 upgraded, 0 newly installed, 0 to remove and 59 not upgraded. Need to get 0B/2039kB of archives. After unpacking 0B of additional disk space will be used. (Reading database ... dpkg: error processing /var/cache/apt/archives/dpkg_1.13.26_arm.deb (--unpack): files list file for package `coreutils' contains empty filename Do you see anything unusual in the file list for coreutils? (i.e., /var/lib/dpkg/info/coreutils.list) For instance, are there empty lines? Does it look obviously corrupted? I would try fixing the problems that stop dpkg from processing the files list, then downloading the .deb for the *exact version* you have installed, and running dpkg --install on it to make sure the list is correct. NB: make sure it doesn't have anything that belongs to another package first! I've attached the files list for coreutils on my computer for comparison. Daniel coreutils-filelist.bz2 Description: Binary data
Re: apt-get upgrade error: package `coreutils' contains empty filename ?
Ah ha, now we are getting somewhere: It looks like the coreutils.list file has a script instead of a filelist. How do I go about fixing this for my system? # cat /var/lib/dpkg/info/coreutils.list #!/bin/sh set -e # Automatically added by installdeb-wordlist case $1 in abort-install|remove) /usr/sbin/remove-default-wordlist wamerican if [ -e /usr/share/debconf/confmodule ] ; then . /usr/share/debconf/confmodule db_purge fi esac # End automatically added section # Automatically added by dh_installdebconf if [ $1 = purge ] [ -e /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule db_purge fi # End automatically added section On Sun, Jan 18, 2009 at 5:35 PM, Daniel Burrows dburr...@debian.org wrote: On Sun, Jan 18, 2009 at 04:35:37PM -0800, Eric Higgins erichigg...@gmail.com was heard to say: Still no luck on this. I can't even seem to force dpkg to upgrade: # apt-get -fm install dpkg Reading package lists... Done Building dependency tree... Done Suggested packages: lzma The following packages will be upgraded: dpkg 1 upgraded, 0 newly installed, 0 to remove and 59 not upgraded. Need to get 0B/2039kB of archives. After unpacking 0B of additional disk space will be used. (Reading database ... dpkg: error processing /var/cache/apt/archives/dpkg_1.13.26_arm.deb (--unpack): files list file for package `coreutils' contains empty filename Do you see anything unusual in the file list for coreutils? (i.e., /var/lib/dpkg/info/coreutils.list) For instance, are there empty lines? Does it look obviously corrupted? I would try fixing the problems that stop dpkg from processing the files list, then downloading the .deb for the *exact version* you have installed, and running dpkg --install on it to make sure the list is correct. NB: make sure it doesn't have anything that belongs to another package first! I've attached the files list for coreutils on my computer for comparison. Daniel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: apt-get upgrade error: package `coreutils' contains empty filename ?
On Sun, Jan 18, 2009 at 04:35:37PM -0800, Eric Higgins wrote: files list file for package `coreutils' contains empty filename the file /var/lib/dpkg/info/coreutils.list seems to be corrupted. Check it (and possibly also the filesystem) In case of dubt, you could try mv /var/lib/dpkg/info/coreutils.list /var/lib/dpkg/info/coreutils.list.CORRUPTED touch /var/lib/dpkg/info/coreutils.list apt-get --reinstall install coreutils -- Chi usa software non libero avvelena anche te. Digli di smettere. Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale. Informatica=bomba: intelligente solo per gli stupidi che ci credono. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: apt-get upgrade error: package `coreutils' contains empty filename ?
On Sun, Jan 18, 2009 at 07:37:29PM -0800, Eric Higgins erichigg...@gmail.com was heard to say: Ah ha, now we are getting somewhere: It looks like the coreutils.list file has a script instead of a filelist. How do I go about fixing this for my system? It looks like it got replaced by the postinst for wamerican. You could just replace it with an empty file and then reinstall coreutils, but you should be aware that this is probably some sort of filesystem corruption. It's possible that this is the only thing that's wrong and that you won't see any more problems, but I wouldn't count on it. It's probably a good idea to back up any important data just in case the situation gets worse. Just out of curiosity: what happened to the postinst for wamerican? It should be /var/lib/dpkg/info/wamerican.postinst. Daniel -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
apt-get upgrade error: package `coreutils' contains empty filename ?
I've been unable to upgrade my debian machine for months now, just getting around to trying to fix it. ~$ uname -a Linux NSLUG 2.6.18-6-ixp4xx #1 Tue Feb 12 00:57:53 UTC 2008 armv5tel GNU/Linux I've had some luck with these instructions: http://lists.debian.org/debian-user/2003/07/msg03322.html I had to remove the files in /var/cache/debconf, so now all of the perl errors are gone, but the dpkg upgrade still fails. # apt-get upgrade Reading package lists... Done Building dependency tree... Done The following packages have been kept back: openssh-client openssh-server The following packages will be upgraded: avahi-daemon bind9-host cpio dbus debconf debconf-i18n dnsutils dpkg dselect initramfs-tools initscripts libavahi-client3 libavahi-common-data libavahi-common3 libavahi-compat-howl0 libavahi-core4 libbind9-0 libc6 libcupsys2 libdbus-1-3 libdns22 libfreetype6 libgnutls13 libisc11 libisccc0 libisccfg1 libkrb53 liblwres9 libpcre3 libssl0.9.8 libvorbis0a libvorbisenc2 libvorbisfile3 linux-image-2.6.18-6-ixp4xx locales mt-daapd mtr-tiny ntpdate openssl perl perl-base perl-modules python2.4 python2.4-minimal reportbug rsync samba samba-common samba-doc selinux-policy-refpolicy-targeted smbclient smbfs swat sysv-rc sysvinit sysvinit-utils tzdata winbind 58 upgraded, 0 newly installed, 0 to remove and 2 not upgraded. Need to get 0B/58.5MB of archives. After unpacking 774kB disk space will be freed. Do you want to continue [Y/n]? Extracting templates from packages: 100% Preconfiguring packages ... (Reading database ... dpkg: error processing /var/cache/apt/archives/dpkg_1.13.26_arm.deb (--unpack): files list file for package `coreutils' contains empty filename Errors were encountered while processing: /var/cache/apt/archives/dpkg_1.13.26_arm.deb Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1) Thanks in advance, Eric -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: apt-get upgrade error: package `coreutils' contains empty filename ?
On Sat, 2009-01-17 at 21:33 +0100, Eric Higgins wrote: # apt-get upgrade ... Preconfiguring packages ... (Reading database ... dpkg: error processing /var/cache/apt/archives/dpkg_1.13.26_arm.deb (--unpack): files list file for package `coreutils' contains empty filename Errors were encountered while processing: /var/cache/apt/archives/dpkg_1.13.26_arm.deb Processing was halted because there were too many errors. E: Sub-process /usr/bin/dpkg returned an error code (1) Try to remove /var/cache/apt/archives/dpkg_1.13.26_arm.deb and try again with: aptitude update aptitude safe-upgrade Best, Rob -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org