Aktualizacja Debiana zg

Konfiguracja serwerów, usług, itp.
wirus133
Posty: 5
Rejestracja: 18 sierpnia 2010, 11:54

Aktualizacja Debiana zgłasza błąd

Post autor: wirus133 »

Witam.
Mam Debiana6, zainstalowałem go z serwerem ssh i systemem podstawowym.
Dodałem repozytoria:

Kod: Zaznacz cały

deb [URL]http://security.debian.org/[/URL] lenny/updates main
deb-src [URL]http://security.debian.org/[/URL] lenny/updates main

deb [URL]http://volatile.debian.org/debian-volatile[/URL] lenny/volatile main
deb-src [URL]http://volatile.debian.org/debian-volatile[/URL] lenny/volatile main

deb [URL]http://ftp.pl.debian.org/debian/[/URL] squeeze main
deb-src [URL]http://ftp.pl.debian.org/debian/[/URL] squeeze main

deb [URL]http://security.debian.org/[/URL] squeeze/updates main
deb-src [URL]http://security.debian.org/[/URL] squeeze/updates main

# squeeze-updates, previously known as 'volatile'
deb [URL]http://ftp.pl.debian.org/debian/[/URL] squeeze-updates main
deb-src [URL]http://ftp.pl.debian.org/debian/[/URL] squeeze-updates main
i po wpisaniu

Kod: Zaznacz cały

apt-get update
wyświetla

Kod: Zaznacz cały

Pob: 13 [URL]http://ftp.pl.debian.org[/URL] squeeze-updates Release.gpg [6973 B]
Pob: 14 [URL]http://ftp.pl.debian.org/debian/[/URL] squeeze-updates/main Translation-en [6973 B]
Pob: 15 [URL]http://ftp.pl.debian.org/debian/[/URL] squeeze-updates/main Translation-pl [6973 B]
Pob: 16 [URL]http://volatile.debian.org[/URL] lenny/volatile Release [6973 B]
Pob: 17 [URL]http://ftp.pl.debian.org[/URL] squeeze Release [6973 B]
Pob: 18 [URL]http://ftp.pl.debian.org[/URL] squeeze-updates Release [6973 B]
Pob: 19 [URL]http://security.debian.org[/URL] lenny/updates Release [6973 B]
Pob: 20 [URL]http://security.debian.org[/URL] squeeze/updates Release [6973 B]
Ign [URL]http://volatile.debian.org[/URL] lenny/volatile Release
Pob: 21 [URL]http://volatile.debian.org[/URL] lenny/volatile/main Sources/DiffIndex [6973 B]
Pob: 22 [URL]http://volatile.debian.org[/URL] lenny/volatile/main i386 Packages/DiffIndex [6973 B]
Ign [URL]http://ftp.pl.debian.org[/URL] squeeze Release
Pob: 23 [URL]http://volatile.debian.org[/URL] lenny/volatile/main Sources [6973 B]
Pob: 24 [URL]http://ftp.pl.debian.org[/URL] squeeze/main Sources/DiffIndex [6973 B]
Pob: 25 [URL]http://volatile.debian.org[/URL] lenny/volatile/main i386 Packages [6973 B]
Pob: 26 [URL]http://ftp.pl.debian.org[/URL] squeeze/main i386 Packages/DiffIndex [6973 B]
Pob: 27 [URL]http://ftp.pl.debian.org[/URL] squeeze/main Sources [6973 B]
Ign [URL]http://ftp.pl.debian.org[/URL] squeeze-updates Release
Pob: 28 [URL]http://ftp.pl.debian.org[/URL] squeeze/main i386 Packages [6973 B]
Pob: 29 [URL]http://ftp.pl.debian.org[/URL] squeeze-updates/main Sources/DiffIndex [6973 B]
Pob: 30 [URL]http://ftp.pl.debian.org[/URL] squeeze-updates/main i386 Packages/DiffIndex [6973 B]
Ign [URL]http://security.debian.org[/URL] lenny/updates Release
Pob: 31 [URL]http://ftp.pl.debian.org[/URL] squeeze-updates/main Sources [6973 B]
Pob: 32 [URL]http://security.debian.org[/URL] lenny/updates/main Sources/DiffIndex [6973 B]
Pob: 33 [URL]http://security.debian.org[/URL] lenny/updates/main i386 Packages/DiffIndex [6973 B]
Pob: 34 [URL]http://ftp.pl.debian.org[/URL] squeeze-updates/main i386 Packages [6973 B]
Pob: 35 [URL]http://security.debian.org[/URL] lenny/updates/main Sources [6973 B]
Ign [URL]http://security.debian.org[/URL] squeeze/updates Release
Pob: 36 [URL]http://security.debian.org[/URL] lenny/updates/main i386 Packages [6973 B]
Pob: 37 [URL]http://security.debian.org[/URL] squeeze/updates/main Sources/DiffIndex [6973 B]
Pob: 38 [URL]http://security.debian.org[/URL] squeeze/updates/main i386 Packages/DiffIndex [6973 B]
Pob: 39 [URL]http://security.debian.org[/URL] squeeze/updates/main Sources [6973 B]
Pob: 40 [URL]http://security.debian.org[/URL] squeeze/updates/main i386 Packages [6973 B]
Pobrano 279 kB w 0s (1610 kB/s)
Czytanie list pakietów... Błąd!
E: Encountered a section with no Package: header
E: Problem with MergeList /var/lib/apt/lists/security.debian.org_dists_lenny_updates_main_binary-i386_Packages
E: Nie udało się otworzyć lub zanalizować zawartości list pakietów.
root@rdns2-144:~#
Dzień wcześniej instalowałem Debiana na wirtualnej maszynie z dokładnie tymi samymi repozytoriami (kopiuj wklej).
Szukałem z pomocą Google i znalazłem rozwiązanie.

Kod: Zaznacz cały

rm /var/lib/apt/lists/* -vf
Niestety to nic nie pomaga. Po wpisaniu:

Kod: Zaznacz cały

 apt-get update 
mam dokładnie takie same błędy.

Co źle zrobiłem, że to nie działa? Dystrybucja i386, a procesor athlon, czy to ma jakiś wpływ na apt-get?

W czasie instalacji systemu nie mogłem dodać adresów serwerów lustrzanych. Wyświetlał błąd. Więc zainstalowałem bez serwerów lustrzanych.

Pozdrawiam.
Awatar użytkownika
Yampress
Administrator
Posty: 6420
Rejestracja: 09 sierpnia 2007, 21:41
Lokalizacja: PL

Post autor: Yampress »

A po co mieszasz Lenny ze Squeeze, to mieszanie Debiana w wersji 5 i 6. Aktualne wpisy to Squeeze czyli wersja 6.
wirus133
Posty: 5
Rejestracja: 18 sierpnia 2010, 11:54

Post autor: wirus133 »

Przepraszam za błędy.
Niestety wszystkie repozytoria nie działają (Lenny, Squeeze). Jest dokładnie taki sam błąd.
Czy to może być wina że przy instalacji wybrałem żeby nie korzystał z serwerów lustrzanych? Może coś trzeba włączyć doinstalować? Może źle ustawiona sieć? Korzystam z DHCP.
Awatar użytkownika
Bastian
Member
Posty: 1424
Rejestracja: 30 marca 2008, 16:09
Lokalizacja: Poznañ

Post autor: Bastian »

Co masz aktualnie w pliku /etc/apt/sources.list?
ODPOWIEDZ