[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#276602: empty line causes APT to barf



Package: apt
Version: 0.5.27
Severity: normal

APT should probably be a little more robust...

root@cirrus:/# file /etc/apt/preferences
/etc/apt/preferences: ERROR: cannot open (/etc/apt/preferences)
root@cirrus:/# apt-get install gawk
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
[...]
root@cirrus:/# echo > /etc/apt/preferences
root@cirrus:/# apt-get install strace
Reading Package Lists... Done
E: Invalid record in the preferences file, no Package header

-- System Information:
Debian Release: 3.1
  APT prefers testing
  APT policy: (600, 'testing'), (98, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-cirrus
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-17 GNU C Library: Shared libraries an
ii  libgcc1                     1:4.0-0pre0  GCC support library
ii  libstdc++5                  1:3.3.5-1    The GNU Standard C++ Library v3

-- no debconf information

-- 
Please do not CC me when replying to lists; I read them!
 
 .''`.     martin f. krafft <madduck@debian.org>
: :'  :    proud Debian developer, admin, and user
`. `'`
  `-  Debian - when you have better things to do than fixing a system
 
Invalid/expired PGP subkeys? Use subkeys.pgp.net as keyserver!

Attachment: signature.asc
Description: Digital signature


Reply to: