linux - How to fix parse-error with Raspberry Pi? -
i tried install lighttpd
, got error:
reading package lists... error! e: unable parse package file /var/lib/dpkg/status (1) e: package lists or status file not parsed or opened.
so, i've searched on internet , tried remove , reload package lists:
@rasp:~ $ sudo rm /var/lib/apt/lists/* -vf removed '/var/lib/apt/lists/archive.raspberrypi.org_debian_dists_jessie_inrelease' removed '/var/lib/apt/lists/archive.raspberrypi.org_debian_dists_jessie_main_binary-armhf_packages' removed '/var/lib/apt/lists/archive.raspberrypi.org_debian_dists_jessie_ui_binary-armhf_packages' removed '/var/lib/apt/lists/lock' removed '/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_jessie_contrib_binary-armhf_packages' removed '/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_jessie_inrelease' removed '/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_jessie_main_binary-armhf_packages' removed '/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_jessie_non-free_binary-armhf_packages' removed '/var/lib/apt/lists/mirrordirector.raspbian.org_raspbian_dists_jessie_rpi_binary-armhf_packages' rm: cannot remove '/var/lib/apt/lists/partial': directory pi@rasp:~ $ sudo apt-get clean pi@rasp:~ $ sudo apt-get update get:1 http://archive.raspberrypi.org jessie inrelease [13.2 kb] get:2 http://mirrordirector.raspbian.org jessie inrelease [14.9 kb] get:3 http://archive.raspberrypi.org jessie/main armhf packages [144 kb] get:4 http://mirrordirector.raspbian.org jessie/main armhf packages [8980 kb] get:5 http://archive.raspberrypi.org jessie/ui armhf packages [8966 b] ign http://archive.raspberrypi.org jessie/main translation-en
ign http://archive.raspberrypi.org jessie/ui translation-en get:6 http://mirrordirector.raspbian.org jessie/contrib armhf packages [37.5 kb] get:7 http://mirrordirector.raspbian.org jessie/non-free armhf packages [70.3 kb] get:8 http://mirrordirector.raspbian.org jessie/rpi armhf packages [1356 b] ign http://mirrordirector.raspbian.org jessie/contrib translation-en ign http://mirrordirector.raspbian.org jessie/main translation-en
ign http://mirrordirector.raspbian.org jessie/non-free translation-en ign http://mirrordirector.raspbian.org jessie/rpi translation-en
fetched 9271 kb in 1min 36s (95.8 kb/s)
reading package lists... error! e: unable parse package file /var/lib/dpkg/status (1) e: package lists or status file not parsed or opened.
how fix error? updating lists, recommended in many forums, doesn't work, seeing quote above.
you have replace status file
cp /var/lib/dpkg/status-old /var/lib/dpkg/status
if doesn't help, because status-old corrupted initial status file backups
cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
then run apt-get update
Comments
Post a Comment