PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : dpkg (Debian spezifisches) Problem mit /var/lib/dpkg/available



zaiyon
18.11.04, 07:15
Hi, ich habe nichts nennenswertes verändert, allerdings kann ich plötzlich nicht mehr so recht etwas mit dpkg anfangen, so ziemlich egal was ich tue (z.B. tuxracer installiern), das erscheint:



# apt-get install tuxracer
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
libsdl-mixer1.2 libsmpeg0 tcl8.4 tuxracer-data
Suggested packages:
tclreadline
The following NEW packages will be installed:
libsdl-mixer1.2 libsmpeg0 tcl8.4 tuxracer tuxracer-data
0 upgraded, 5 newly installed, 0 to remove and 10 not upgraded.
Need to get 0B/9193kB of archives.
After unpacking 17.4MB of additional disk space will be used.
Do you want to continue? [Y/n] y
dpkg: parse error, in file `/var/lib/dpkg/available' near line 1:
field name `u\uffff\uffff\uffff\uffff(AW\uffff' must be followed by colon
E: Sub-process /usr/bin/dpkg returned an error code (2)


wobei dieser Teil hier wohl der wesentilche ist:


dpkg: parse error, in file `/var/lib/dpkg/available' near line 1:
field name `u\uffff\uffff\uffff\uffff(AW\uffff' must be followed by colon


Sagt das jemandem etwas?

taylor
18.11.04, 07:27
Verschiebe die Datei 'available' an einen sicheren Ort und führe 'apt-get update' aus.

EDIT: Das ist wohl noch nicht die Lösung. Hast Du den Schalter --update-avail im dpkg Manual gesehen?

zaiyon
18.11.04, 10:03
# dpkg --update-avail /var/lib/dpkg/available
Replacing available packages info, using /var/lib/dpkg/available.
dpkg: parse error, in file `/var/lib/dpkg/available' near line 1:
field name `uíâ(AW¢' must be followed by colon


Wenn ich das jetzt richtig verstanden habe, ohne Parameter funktioniert es nicht...

carnil
18.11.04, 20:07
Hi

Also wenn ich die Manpage richig verstehe, dann ist die obige Syntax nicht ganz richtig


dpkg --update-avail | --merge-avail Packages-file
Update dpkg's and dselect's idea of which packages are avail-
able. With action --merge-avail, old information is combined
with information from Packages-file. With action
--update-avail, old information is replaced with the information
in the Packages-file. The Packages-file distributed with Debian
is simply named Packages. dpkg keeps its record of available
packages in /var/lib/dpkg/available.

A simpler one-shot command to retrieve and update the available
fileis dselect update.

Man müsste also als Argument die Packages-Datei übergeben, welche afaik unter /var/lib/lists liegen sollte (wie gesagt wenn ich's richtig verstanden habe).

Einfacher soll's ja überdselect update gehen.

Falls alles nicht hilft, und auch nichts gefunden werden sollte, Bugreport ausfüllen.

MfG carnil