Abandoned post by Unregistered user.
I've tried to update my raspberry, received 503 Service Unavailable message and now I can't install anything, because of missing dpkg directory..
root@raspberrypi:/sys/bus/w1/devices# sudo apt-get update
Ign ://archive.raspberrypi.org jessie InRelease
Ign ://archive.raspberrypi.org jessie Release.gpg
Ign ://archive.raspberrypi.org jessie Release
Err ://archive.raspberrypi.org jessie/main armhf Packages
503 Service Unavailable [IP: 93.93.128.133 80]
Err tp://archive.raspberrypi.org jessie/ui armhf Packages
503 Service Unavailable [IP: 93.93.128.133 80]
Ign ://archive.raspberrypi.org jessie/main Translation-en
Ign ://archive.raspberrypi.org jessie/ui Translation-en
Get:1 ://mirrordirector.raspbian.org jessie InRelease [14.9 kB]
Get:2 ://mirrordirector.raspbian.org jessie/main armhf Packages [8981 kB]
Get:3 ://mirrordirector.raspbian.org jessie/contrib armhf Packages [37.5 kB]
Get:4 ://mirrordirector.raspbian.org jessie/non-free armhf Packages [70.3 kB]
Get:5 ://mirrordirector.raspbian.org jessie/rpi armhf Packages [1356 B]
Ign ://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign ://mirrordirector.raspbian.org jessie/main Translation-en
Ign ://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign ://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 9105 kB in 1min 32s (98.7 kB/s)
W: Failed to fetch ://archive.raspberrypi.org/debian/dists/jessie/main/binary-armhf/Packages 503 Service Unavailable [IP: 93.93.128.133 80]
W: Failed to fetch ://archive.raspberrypi.org/debian/dists/jessie/ui/binary-armhf/Packages 503 Service Unavailable [IP: 93.93.128.133 80]
E: Some index files failed to download. They have been ignored, or old ones used instead. E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Now when I try update again:
root@raspberrypi:/tmp# sudo apt-get update
Hit ://archive.raspberrypi.org jessie InRelease
Hit ://mirrordirector.raspbian.org jessie InRelease
Hit ://archive.raspberrypi.org jessie/main armhf Packages
Hit ://mirrordirector.raspbian.org jessie/main armhf Packages
Hit ://archive.raspberrypi.org jessie/ui armhf Packages
Hit ://mirrordirector.raspbian.org jessie/contrib armhf Packages
Hit ://mirrordirector.raspbian.org jessie/non-free armhf Packages
Hit ://mirrordirector.raspbian.org jessie/rpi armhf Packages
Ign ://archive.raspberrypi.org jessie/main Translation-en
Ign ://archive.raspberrypi.org jessie/ui Translation-en
Ign ://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign ://mirrordirector.raspbian.org jessie/main Translation-en
Ign ://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign ://mirrordirector.raspbian.org jessie/rpi Translation-en
E: Could not open lock file /var/lib/dpkg/lock - open (2: No such file or directory)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
Now i can't install anything...
root@raspberrypi:/tmp# apt-get download dpkg
E: Could not open file /var/lib/dpkg/status - open (2: No such file or directory) E: The package lists or status file could not be parsed or opened.
My lib directory:
root@raspberrypi:/tmp# ls /var/lib/
PackageKit dhcpcd5 logrotate openbox polkit-1 samba systemd udisks2 usbutils xkb apt ieee-data nfs pam python sgml-base ucf update-rc.d vim xml-core container lightdm ntp plymouth python-support sudo udisks urandom xfonts
Can you guys please help? My connection is working fine..
/var/lib/dpkg
.