PDA

View Full Version : apt-get update / upgrade not working



Lord_Flaya
2014-02-07, 10:49
Hi!

Searched the forum but found no answer. I have kali linux latest version, and trying to update/upgrade. there's a lot of packages to get but it always fail. I tried the graphical update and command with apt-get update && apt-get upgrade. Even tried with sudo, but no luck. My error is always the same in command:

Error http://http.kali.org/kali/ kali/main kali-linux-full i386 1.40
404 Not Found

Over and over again..

Running the graphical interface gets me a pop-up saying the same..

pls help.

edit: Got all updates narrowed down to 5 failing. Ran aptitude safe-upgrade and managed to update 75 out of 80..

However i still get this on the last 5:

# apt-get upgrade
Läser paketlistor... Färdig
Bygger beroendeträd
Läser tillståndsinformation... Färdig
Följande paket kommer att uppgraderas:
exploitdb jigsaw kali-linux kali-linux-full kali-linux-sdr
5 att uppgradera, 0 att nyinstallera, 0 att ta bort och 0 att inte uppgradera.
Behöver hämta 29,6 MB arkiv.
Efter denna åtgärd kommer ytterligare 4 200 kB utrymme användas på disken.
Vill du fortsätta [J/n]? j
Fel http://http.kali.org/kali/ kali/main exploitdb all 01242014-0kali1
404 Not Found
Fel http://http.kali.org/kali/ kali/main jigsaw all 1.5.3-1kali1
404 Not Found
Fel http://http.kali.org/kali/ kali/main kali-linux i386 1.40
404 Not Found
Fel http://http.kali.org/kali/ kali/main kali-linux-sdr i386 1.40
404 Not Found
Fel http://http.kali.org/kali/ kali/main kali-linux-full i386 1.40
404 Not Found
Misslyckades med att hämta http://http.kali.org/kali/pool/main/e/exploitdb/exploitdb_01242014-0kali1_all.deb 404 Not Found
Misslyckades med att hämta http://http.kali.org/kali/pool/main/j/jigsaw/jigsaw_1.5.3-1kali1_all.deb 404 Not Found
Misslyckades med att hämta http://http.kali.org/kali/pool/main/k/kali-meta/kali-linux_1.40_i386.deb 404 Not Found
Misslyckades med att hämta http://http.kali.org/kali/pool/main/k/kali-meta/kali-linux-sdr_1.40_i386.deb 404 Not Found
Misslyckades med att hämta http://http.kali.org/kali/pool/main/k/kali-meta/kali-linux-full_1.40_i386.deb 404 Not Found
E: Vissa arkiv kunte inte hämtas. Prova att köra "apt-get update" eller med --fix-missing.


sorry this is in swedish, but i can't change languageon my kali, it just returns to swedish. Really hope someone can help me anyway.

zongo
2014-02-08, 13:44
Don't mean to hijack your post but I have the exact same issue pertaining to the same packages. I have no solution at all. It has been running stable for over a year and suddenly it broke.
-----------------------------------
Here is my sources.list file:
deb http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali-dev main/debian-installer
deb-src http://http.kali.org/kali kali-dev main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
deb http://http.kali.org/kali kali main/debian-installer
deb-src http://http.kali.org/kali kali main contrib non-free
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb-src http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://repo.kali.org/kali kali-bleeding-edge main
deb-src http://repo.kali.org/kali kali-bleeding-edge main
-----------------------------------

zongo
2014-02-08, 14:20
Found solution by changing mirror.
apt-get update/upgrade and dist-upgrade run perfect. I now have an up to date kali system :)

Lord_Flaya
2014-02-08, 15:24
Care to share how you did? Found a similar tip that helped me change to 8.8.8.8 google, but mine is still broken. How and to what (if no secret) did you change?

kylebofh
2014-02-09, 10:40
Found solution by changing mirror.
apt-get update/upgrade and dist-upgrade run perfect. I now have an up to date kali system :)

As Lord_Flaya said earlier, it's a nice thing to share how do you solve the problem, with details.

kylebofh
2014-02-09, 11:39
I have just seen this in the official documentation: http://http.kali.org/README.mirrorlist (from this web http://docs.kali.org/kali-support/kali-linux-mirrors)

xfuegox
2014-02-09, 20:11
(use VPN; some contry can't update the sys , i'm from morocco and i use USA VPN
hope this work

good luck

xfuegox
2014-02-09, 20:32
i have the same problem i thing the problem is the server of the repository, it bring an outdated packets for some country

the solution is using a VPN now i m using a USA VPN and i resolve this problem

good luck

bond benz
2014-02-10, 10:55
apt-get dist-update , if don't work redownload kali with latest version

hardy_uks
2016-08-02, 07:44
I get the error like this:
root@DarkEnergy:~# apt-get install x-window-system
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists or status file could not be parsed or opened.