Kan inte uppdatera förrådsinformationen

Frågor om LiveCDn samt installation och uppgradering av Ubuntu och dess varianter
Användarvisningsbild
Victor
Inlägg: 425
Blev medlem: 12 okt 2006, 19:08
OS: Ubuntu
Utgåva: 23.10 Mantic Minotaur
Ort: Lund

Kan inte uppdatera förrådsinformationen

Inlägg av Victor »

Hej! Jag har stora problem att köra sudo apt-get update

Jag har nu stängt av alla förråd förutom main, oneiric-security och oneiric-updates. Jag får följande när jag kör ovan kommando:

Kod: Markera allt

victor@guinness:~$ sudo apt-get update
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric-updates InRelease
Ign http://archive.ubuntu.com oneiric-security InRelease
Get:1 http://archive.ubuntu.com oneiric Release.gpg [198 B]
Get:2 http://archive.ubuntu.com oneiric-updates Release.gpg [198 B]
Get:3 http://archive.ubuntu.com oneiric-security Release.gpg [198 B]
Get:4 http://archive.ubuntu.com oneiric Release [40,8 kB]
Get:5 http://archive.ubuntu.com oneiric-updates Release [32,4 kB]
Get:6 http://archive.ubuntu.com oneiric-security Release [32,4 kB]
Get:7 http://archive.ubuntu.com oneiric/main amd64 Packages
99% [7 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:8 http://archive.ubuntu.com oneiric/main i386 Packages
99% [8 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:9 http://archive.ubuntu.com oneiric/main TranslationIndex [3 289 B]
Get:10 http://archive.ubuntu.com oneiric-updates/main amd64 Packages
99% [10 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:11 http://archive.ubuntu.com oneiric-updates/main i386 Packages
99% [11 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:12 http://archive.ubuntu.com oneiric-updates/main TranslationIndex [74 B]
Get:13 http://archive.ubuntu.com oneiric-security/main amd64 Packages
99% [13 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:14 http://archive.ubuntu.com oneiric-security/main i386 Packages
99% [14 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:15 http://archive.ubuntu.com oneiric-security/main TranslationIndex [73 B]
Get:16 http://archive.ubuntu.com oneiric/main Translation-en
99% [16 Translation-en bzip2 0 B] [Connecting to 127.0.0.1 (127.0.0.1)]bzip2: (stdin) is not a bzip2 file.
Get:17 http://archive.ubuntu.com oneiric-updates/main Translation-en   
99% [17 Translation-en bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:18 http://archive.ubuntu.com oneiric-security/main Translation-en
99% [18 Translation-en bzip2 0 B] [Connecting to 127.0.0.1 (127.0.0.1)]bzip2: (stdin) is not a bzip2 file.
Fetched 131 kB in 1s (67,4 kB/s)                                       
W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric_main_binary-amd64_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric_main_binary-i386_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-updates_main_binary-amd64_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-updates_main_binary-i386_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-security_main_binary-amd64_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-security_main_binary-i386_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric_main_i18n_Translation-en  Encountered a section with no Package: header

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-updates_main_i18n_Translation-en  Encountered a section with no Package: header

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-security_main_i18n_Translation-en  Encountered a section with no Package: header

E: Some index files failed to download. They have been ignored, or old ones used instead.
All hjälp tas tacksamt emot, just nu kan jag inte installera något ens!
// So long, and thank you for all the fish

"Your Ubuntu User number is # 10448"
ubot
Inlägg: 4613
Blev medlem: 04 jan 2008, 14:03
OS: Ubuntu
Utgåva: 24.04 Noble Numbat LTS

Re: Kan inte uppdatera förrådsinformationen

Inlägg av ubot »

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric_main_binary-amd64_Packages Hash Sum mismatch
Den adressen ser ju skum ut. Det är inte konstigt att det inte fungerar att hämta paketet där.

Du kan alltid testa den här lösningen:

Kod: Markera allt

sudo dpkg --configure -a; sudo apt-get clean; sudo apt-get autoclean; sudo apt-get update
Om du vill veta vad kommandona gör så kör:

Kod: Markera allt

man apt-get
och

Kod: Markera allt

man dpkg
Jag tror framförallt att det är sudo apt-get clean som gör jobbet så om du inte vill köra alla kommandon så testa bara:

Kod: Markera allt

sudo apt-get clean && sudo apt-get update
Användarvisningsbild
Victor
Inlägg: 425
Blev medlem: 12 okt 2006, 19:08
OS: Ubuntu
Utgåva: 23.10 Mantic Minotaur
Ort: Lund

Re: Kan inte uppdatera förrådsinformationen

Inlägg av Victor »

Sant, den ser lite knäpp ut. Det tror jag inte det gjorde tidigare och kan bero på att jag har försökt lite andra knep som jag hittat på nätet, vilket var detta:

Kod: Markera allt

sudo cp -arf /var/lib/dpkg /var/lib/dpkg.backup
sudo cp /var/lib/dpkg/status-old /var/lib/dpkg/status
sudo cp /var/lib/dpkg/available-old /var/lib/dpkg/available
sudo rm -rf /var/lib/dpkg/updates/*; sudo rm -rf /var/lib/apt/lists
sudo mkdir /var/lib/apt/lists; sudo mkdir /var/lib/apt/lists/partial
sudo apt-get clean; sudo apt-get autoclean
sudo apt-get update
sudo dpkg --clear-avail; sudo dpkg --configure -a
sudo apt-get install -f
sudo apt-get update
sudo apt-get dist-upgrade
(hittat på: https://answers.launchpad.net/ubuntu/+s ... ion/164506)

Output från ditt kommando:

Kod: Markera allt

victor@guinness:~$ sudo dpkg --configure -a; sudo apt-get clean; sudo apt-get autoclean; sudo apt-get update
[sudo] password for victor: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Ign http://archive.ubuntu.com oneiric InRelease
Ign http://archive.ubuntu.com oneiric-updates InRelease
Ign http://archive.ubuntu.com oneiric-security InRelease
Hit http://archive.ubuntu.com oneiric Release.gpg
Hit http://archive.ubuntu.com oneiric-updates Release.gpg
Hit http://archive.ubuntu.com oneiric-security Release.gpg
Hit http://archive.ubuntu.com oneiric Release
Hit http://archive.ubuntu.com oneiric-updates Release
Hit http://archive.ubuntu.com oneiric-security Release
Get:1 http://archive.ubuntu.com oneiric/main amd64 Packages
99% [1 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:2 http://archive.ubuntu.com oneiric/main i386 Packages
99% [2 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Hit http://archive.ubuntu.com oneiric/main TranslationIndex
Get:3 http://archive.ubuntu.com oneiric-updates/main amd64 Packages
99% [3 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:4 http://archive.ubuntu.com oneiric-updates/main i386 Packages
99% [4 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Hit http://archive.ubuntu.com oneiric-updates/main TranslationIndex
Get:5 http://archive.ubuntu.com oneiric-security/main amd64 Packages
99% [5 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:6 http://archive.ubuntu.com oneiric-security/main i386 Packages
99% [6 Packages bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Hit http://archive.ubuntu.com oneiric-security/main TranslationIndex
Get:7 http://archive.ubuntu.com oneiric/main Translation-en
99% [7 Translation-en bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:8 http://archive.ubuntu.com oneiric-updates/main Translation-en
99% [8 Translation-en bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Get:9 http://archive.ubuntu.com oneiric-security/main Translation-en
99% [9 Translation-en bzip2 0 B] [Waiting for headers]bzip2: (stdin) is not a bzip2 file.
Fetched 23,6 kB in 2s (11,1 kB/s)                     
W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric_main_binary-amd64_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric_main_binary-i386_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-updates_main_binary-amd64_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-updates_main_binary-i386_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-security_main_binary-amd64_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-security_main_binary-i386_Packages  Hash Sum mismatch

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric_main_i18n_Translation-en  Encountered a section with no Package: header

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-updates_main_i18n_Translation-en  Encountered a section with no Package: header

W: Failed to fetch gzip:/var/lib/apt/lists/partial/archive.ubuntu.com_ubuntu_dists_oneiric-security_main_i18n_Translation-en  Encountered a section with no Package: header

E: Some index files failed to download. They have been ignored, or old ones used instead.
victor@guinness:~$
// So long, and thank you for all the fish

"Your Ubuntu User number is # 10448"
Användarvisningsbild
Victor
Inlägg: 425
Blev medlem: 12 okt 2006, 19:08
OS: Ubuntu
Utgåva: 23.10 Mantic Minotaur
Ort: Lund

Re: Kan inte uppdatera förrådsinformationen

Inlägg av Victor »

Jag vet nu vad problemet är. Jag har nämligen använt mig en lokal squid-proxy tillsammans med dansguardian. Stängde jag av den proxy funkade allt.

Hur löser jag så att jag både kan använda mig av proxyn samt kunna uppdatera!?
// So long, and thank you for all the fish

"Your Ubuntu User number is # 10448"
Skriv svar

Återgå till "Installation och uppgradering"