View Full Version : Problemi con APT
Per farla breve, il problema e' questo:
# apt-get update
... tutto fila liscio
# apt-get upgrade
Reading Package Lists... Done
E: Read error - read (21 Is a directory)
stessa cosa se provo con i comandi
# apt-get dist-upgrade
# apt-get install nomeprogramma
Eppure sembrerebbe tutto ok
# dpkg --status apt
Package: apt
Status: install ok installed
Priority: standard
Section: base
Installed-Size: 2692
Maintainer: APT Development Team <deity@lists.debian.org>
Version: 0.5.22
Replaces: libapt-pkg-doc (<< 0.3.7), libapt-pkg-dev (<< 0.3.7)
Provides: libapt-pkg-libc6.3-5-3.3
Depends: libc6 (>= 2.3.2.ds1-4), libgcc1 (>= 1:3.3.2-1), libstdc++5 (>= 1:3.3.2-1)
Suggests: aptitude | synaptic | gnome-apt | wajig, dpkg-dev, apt-doc
Description: Advanced front-end for dpkg
This is Debian's next generation front-end for the dpkg package manager.
It provides the apt-get utility and APT dselect method that provides a
simpler, safer way to install and upgrade packages.
.
APT features complete installation ordering, multiple source capability
and several other unique features, see the Users Guide in apt-doc.
--
Ho provato anche ad installare nuove e vecchie versioni di apt (stable/testing/unstable) ma il problema rimane... qualcuno mi sa aiutare? Io ci ho provato ma nemmeno google mi viene incontro questa volta :(
TIA
ANDY CAPS
20-02-2004, 21:15
prova dpkg-reconfigure apt
apt-get --reinstall install apt aptconf
dpkg --configure -a
se hai fatto qualche settaggio ad apt rimuovilo e prova anche cambiare sources.list
Originariamente inviato da ANDY CAPS
prova dpkg-reconfigure apt
Ok.
# apt-get --reinstall install apt aptconf
Qui si presenta il solito messaggio di errore, praticamente l'unico comando di apt che funziona e'
# apt-get update
dpkg --configure -a
se hai fatto qualche settaggio ad apt rimuovilo e prova anche cambiare sources.list
Le uniche modifiche che ho fatto sono state ad sources.list e
/etc/apt/preferences/.preferences
inserendo le righe:
--
Package: *
Pin: release a=stable
Pin-Priority: 700
Package: *
Pin: release a=testing
Pin-Priority: 650
Package: *
Pin: release a=unstable
Pin-Priority: 600
--
Ma anche cancellando questo file apt non funziona, sempre il solito messaggio d'errore!
Ho poi dovuto aggiungere la stringa
APT::Cache-Limit "8388608";
ma tutto il resto non l'ho toccato...
ANDY CAPS
20-02-2004, 21:51
Package: *
Pin: release a=stable
Pin-Priority: 700
Package: *
Pin: release a=testing
Pin-Priority: 650
Package: *
Pin: release a=unstable
Pin-Priority: 600
il problema è evidente che viene da qui
cancella tutte le modifiche e il file in questione
fai un file vuoto per sources.list e riprova a fare l'update e i soliti comandi di prima magari anche un
dpkg --clear-avail
Ho provato a riportare tutto alla cfg originale:
--
# dpkg --clear-avail
# apt-get update
Hit http://security.debian.org testing/updates/main Packages
Hit http://security.debian.org testing/updates/main Release
Hit http://security.debian.org testing/updates/contrib Packages
Hit http://security.debian.org testing/updates/contrib Release
Hit http://security.debian.org testing/updates/non-free Packages
Hit http://security.debian.org testing/updates/non-free Release
Hit http://security.debian.org testing/updates/main Sources
Hit http://security.debian.org testing/updates/main Release
Hit http://security.debian.org testing/updates/contrib Sources
Hit http://security.debian.org testing/updates/contrib Release
Hit http://non-us.debian.org sid/non-US/main Packages
Hit http://non-us.debian.org sid/non-US/main Release
Hit http://non-us.debian.org sid/non-US/contrib Packages
Hit http://non-us.debian.org sid/non-US/contrib Release
Hit http://non-us.debian.org sid/non-US/non-free Packages
Hit http://non-us.debian.org sid/non-US/non-free Release
Hit http://non-us.debian.org sid/non-US/main Sources
Hit http://non-us.debian.org sid/non-US/main Release
Hit http://non-us.debian.org sid/non-US/contrib Sources
Hit http://non-us.debian.org sid/non-US/contrib Release
Hit http://security.debian.org testing/updates/non-free Sources
Hit http://security.debian.org testing/updates/non-free Release
Hit http://non-us.debian.org sid/non-US/non-free Sources
Hit http://non-us.debian.org sid/non-US/non-free Release
Hit http://ftp.us.debian.org sid/main Packages
Hit http://ftp.us.debian.org sid/main Release
Hit http://ftp.us.debian.org sid/non-free Packages
Hit http://ftp.us.debian.org sid/non-free Release
Hit http://ftp.us.debian.org sid/contrib Packages
Hit http://ftp.us.debian.org sid/contrib Release
Hit http://ftp.us.debian.org sid/main Sources
Hit http://ftp.us.debian.org sid/main Release
Hit http://ftp.us.debian.org sid/non-free Sources
Hit http://ftp.us.debian.org sid/non-free Release
Hit http://ftp.us.debian.org sid/contrib Sources
Hit http://ftp.us.debian.org sid/contrib Release
Reading Package Lists... Done
# apt-get upgrade
Reading Package Lists... Done
E: Read error - read (21 Is a directory)
--
Purtroppo non e' un problema di sources.list,
ANDY CAPS
21-02-2004, 12:05
hai un file di configurazione con quell'errore ma non riesco a capire quale :confused: prova a rinominarli tutti e reinstallare apt con dpkg - in /var/cache/apt/archives
dpkg -i /var/cache/apt/archives/apt_0.5.22_i386.deb
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.