[+]Problem z komendą apt-get update

Ogólne pytania dotyczące systemu
enes
Posty: 2
Rejestracja: 05 lipca 2016, 00:55

[+]Problem z komendą apt-get update

Post autor: enes »

Witam, mam według pliku debian_version debiana 8.5 i problem podczas użycia komendy apt-get update.od razu mówię, że w linuxie jestem nowy.
Próbowałem sam znaleźć rozwiązanie ale ani zmienianie zawartości pliku sources.list ani komendy niżej nie pomogły

Kod: Zaznacz cały

apt-get clean 
rm -r /var/lib/apt/lists/*
rm -r /var/lib/apt/lists/partial/*
apt-get clean 
apt-get update
apt-get upgrade

Kod: Zaznacz cały

root@debian:~# sudo apt-get update && apt-get dist-upgrade
Ign http://ftp.pl.debian.org jessie InRelease
Hit http://ftp.pl.debian.org jessie-updates InRelease
Hit http://ftp.pl.debian.org jessie-backports InRelease
Hit http://security.debian.org jessie/updates InRelease
Hit http://security.debian.org wheezy/updates InRelease
Hit http://ftp.pl.debian.org jessie Release.gpg
Hit http://ftp.pl.debian.org jessie Release
Get:1 http://ftp.pl.debian.org jessie-updates/main amd64 Packages/DiffIndex [4948 B]
Get:2 http://ftp.pl.debian.org jessie-updates/non-free amd64 Packages/DiffIndex [736 B]
Hit http://ftp.pl.debian.org jessie-updates/contrib amd64 Packages
Hit http://ftp.pl.debian.org jessie-updates/contrib Translation-en
Get:3 http://ftp.pl.debian.org jessie-updates/main Translation-en/DiffIndex [2704 B]
Get:4 http://ftp.pl.debian.org jessie-updates/non-free Translation-en/DiffIndex [736 B]
Get:5 ftp://ftp.us.debian.org wheezy InRelease
Ign ftp://ftp.us.debian.org wheezy InRelease
Get:6 http://ftp.pl.debian.org jessie-backports/main amd64 Packages/DiffIndex [27.8 kB]
Get:7 http://ftp.pl.debian.org jessie-backports/contrib amd64 Packages/DiffIndex [13.9 kB]
Get:8 http://ftp.pl.debian.org jessie-backports/non-free amd64 Packages/DiffIndex [7606 B]
Get:9 http://ftp.pl.debian.org jessie-backports/contrib Translation-en/DiffIndex [4024 B]
Get:10 http://ftp.pl.debian.org jessie-backports/main Translation-en/DiffIndex [27.8 kB]
Hit ftp://ftp.us.debian.org wheezy Release.gpg
Get:11 http://ftp.pl.debian.org jessie-backports/non-free Translation-en/DiffIndex [7330 B]
Hit http://security.debian.org jessie/updates/non-free amd64 Packages
Hit ftp://ftp.us.debian.org wheezy Release
Hit http://security.debian.org jessie/updates/non-free Translation-en
Hit http://security.debian.org jessie/updates/main amd64 Packages
Hit http://security.debian.org jessie/updates/contrib amd64 Packages
Hit http://security.debian.org jessie/updates/contrib Translation-en
Hit http://security.debian.org jessie/updates/main Translation-en
Hit http://security.debian.org wheezy/updates/non-free amd64 Packages
Hit ftp://ftp.us.debian.org wheezy/non-free amd64 Packages
Hit http://ftp.pl.debian.org jessie/main amd64 Packages
Hit http://ftp.pl.debian.org jessie/non-free amd64 Packages
Hit http://ftp.pl.debian.org jessie/contrib amd64 Packages
Hit http://ftp.pl.debian.org jessie/contrib Translation-en
Hit ftp://ftp.us.debian.org wheezy/non-free Translation-en
Hit http://ftp.pl.debian.org jessie/main Translation-en
Hit http://ftp.pl.debian.org jessie/non-free Translation-en
Fetched 97.6 kB in 10s (9589 B/s)
W: Failed to fetch http://security.debian.org/dists/wheezy/updates/InRelease  Unable to find expected entry 'deb/binary-amd64/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

jak próbuje zainstalodwać node.js

Kod: Zaznacz cały

root@debian:~# sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
nodejs is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
W: Duplicate sources.list entry ftp://ftp.us.debian.org/debian/ wheezy/non-free amd64 Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_wheezy_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.debian.org/ wheezy/updates/non-free amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_wheezy_updates_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.debian.org/ wheezy/updates/non-free amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_wheezy_updates_non-free_binary-amd64_Packages)
W: Duplicate sources.list entry http://security.debian.org/ wheezy/updates/non-free amd64 Packages (/var/lib/apt/lists/security.debian.org_dists_wheezy_updates_non-free_binary-amd64_Packages)
W: You may want to run apt-get update to correct these problems

plik sources.list

Kod: Zaznacz cały

  GNU nano 2.2.6                                             File: sources.list

#~~~~~~Jessie~~~~~~#
deb http://ftp.pl.debian.org/debian/ jessie main non-free contrib
#deb-src http://ftp.pl.debian.org/debian/ jessie main non-free contrib
deb http://security.debian.org/ jessie/updates main contrib non-free
#deb-src http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.pl.debian.org/debian/ jessie-updates main non-free contrib
#deb-src http://ftp.pl.debian.org/debian/ jessie-updates main non-free contrib

#~~~~~~Backports_Jessie~~~~~~#
deb http://ftp.pl.debian.org/debian/ jessie-backports main contrib non-free


Kod: Zaznacz cały

 ls -la /etc/apt/sources.list.d
total 12
drwxr-xr-x 2 root root 4096 Jul  3 20:34 .
drwxr-xr-x 6 root root 4096 Jul  4 19:04 ..
-rw-r--r-- 1 root root  360 Jul  3 20:35 wheezy.non-free.list

Ostatnio zmieniony 05 lipca 2016, 16:32 przez enes, łącznie zmieniany 1 raz.
Awatar użytkownika
dedito
Moderator
Posty: 3512
Rejestracja: 18 listopada 2013, 21:07
Lokalizacja: Gliwice

Re: Problem z komendą apt-get update

Post autor: dedito »

Pokaż zawartość wheezy.non-free.list
Tam mogą być błędne repozytoria nie do tej dystrybucji.
Skasuj ten plik lub przenieś poza /etc/apt
Następnie ponownie wykonaj update i upgrade.
Jak wszystko będzie ok to instaluj nodejs.
enes
Posty: 2
Rejestracja: 05 lipca 2016, 00:55

Re: Problem z komendą apt-get update

Post autor: enes »

dedito pisze:Pokaż zawartość wheezy.non-free.list
Tam mogą być błędne repozytoria nie do tej dystrybucji.
Skasuj ten plik lub przenieś poza /etc/apt
Następnie ponownie wykonaj update i upgrade.
Jak wszystko będzie ok to instaluj nodejs.

Kod: Zaznacz cały

root@debian:/etc/apt/sources.list.d# cat wheezy.non-free.list
deb ftp://ftp.us.debian.org/debian/ wheezy non-free
deb http://security.debian.org/ wheezy/updates non-free deb http://volatile.debian.org/debian-volatile wheezy/volatile non-free
deb ftp://ftp.us.debian.org/debian/ wheezy non-free
deb http://security.debian.org/ wheezy/updates non-free deb http://volatile.debian.org/debian-volatile wheezy/volatile non-free
Po przeniesieniu pliku działa.
Zablokowany