Je crois avoir casse apt-get :(

Résolu
robert_mccann Messages postés 14 Date d'inscription   Statut Membre Dernière intervention   -  
robert_mccann Messages postés 14 Date d'inscription   Statut Membre Dernière intervention   -
Bonsoir/Bonjour a tous.

J'ai un soucis avec mon terminal, des que je tape apt-get, je recois ce message d'erreur:
sudo: apt-get: command not found

que je sois en
root
ou pas.
Je ne peux faire aucune update pour le coup ni installer aucuns programmes.
J'ai tente de faire une mise a jour avec le software manager et de telecharger
apt
via ce biais mais quand je clique rien ne se passe.
Du coup peut etre un second probleme independant sur ma machine :(

Puisque qu'on aborde le sujet voici ma config:
Acer Aspire One S3

Intel Core I5

Linux 17 Qiana


Je suis assez nouveau dans l'univers de Linux donc si vous pouviez faire comme si vous expliquiez ca a un gamin de 8 ans :)

Merci beaucoup,
Rob.

6 réponses

Utilisateur anonyme
 
Bizarre oui, que donnent ces commandes :

which apt-get
echo $PATH
dpkg -l | grep apt
1
robert_mccann Messages postés 14 Date d'inscription   Statut Membre Dernière intervention  
 
which apt-get 

echo $PATH 

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

dpkg -l | grep apt

rc  add-apt-key                                 1.0-0.5                                             all          Command line tool to add GPG keys to the APT keyring
rc apt 1.0.1ubuntu2.11 amd64 commandline package manager
ii apt-clone 0.3.1~ubuntu11.1 all Script to create state bundles
ii apt-transport-https 1.0.1ubuntu2.11 amd64 https download transport for APT
ii apt-utils 1.0.1ubuntu2.11 amd64 package management related utility programs
ii apt-xapian-index 0.45ubuntu4 all maintenance and search tools for a Xapian index of Debian packages
ii aptdaemon 1.1.1-1ubuntu5.2 all transaction based package management service
ii aptdaemon-data 1.1.1-1ubuntu5.2 all data files for clients
ii aptitude 0.6.8.2-1ubuntu4 amd64 terminal-based package manager
ii aptitude-common 0.6.8.2-1ubuntu4 all architecture indepedent files for the aptitude package manager
ii apturl 0.4.1ubuntu4.1mint2 all install packages using the apt protocol - GTK+ frontend
ii apturl-common 0.4.1ubuntu4.1mint1 all install packages using the apt protocol - common data
ii laptop-detect 0.13.7ubuntu2 amd64 attempt to detect a laptop
ii libapt-inst1.5:amd64 1.0.1ubuntu2.11 amd64 deb package format runtime library
ii libapt-pkg-perl 0.1.29build1 amd64 Perl interface to libapt-pkg
ii libapt-pkg4.12:amd64 1.0.1ubuntu2.11 amd64 package management runtime library
ii libatk-adaptor:amd64 2.10.2-2ubuntu1 amd64 AT-SPI 2 toolkit bridge
ii libmjpegutils-2.1-0 1:2.1.0+debian-2.1 amd64 MJPEG capture/editing/replay and MPEG encoding toolset (library)
ii libmpeg2encpp-2.1-0 1:2.1.0+debian-2.1 amd64 MJPEG capture/editing/replay and MPEG encoding toolset (library)
ii libmplex2-2.1-0 1:2.1.0+debian-2.1 amd64 MJPEG capture/editing/replay and MPEG encoding toolset (library)
ii libopencore-amrnb0:amd64 0.1.3-2ubuntu1 amd64 Adaptive Multi Rate speech codec - shared library
ii libopencore-amrwb0:amd64 0.1.3-2ubuntu1 amd64 Adaptive Multi-Rate - Wideband speech codec - shared library
ii libpcap0.8:amd64 1.5.3-2 amd64 system interface for user-level packet capture
ii libqapt2 2.1.70-0ubuntu4.2 amd64 QApt library package
ii libqapt2-runtime 2.1.70-0ubuntu4.2 amd64 Runtime components for the QApt library
ii libraptor2-0:amd64 2.0.13-1 amd64 Raptor 2 RDF syntax library
ii python-apt 0.9.3.5ubuntu2 amd64 Python interface to libapt-pkg
ii python-apt-common 0.9.3.5ubuntu2 all Python interface to libapt-pkg (locales)
ii python-aptdaemon 1.1.1-1ubuntu5.2 all Python 2 module for the server and client of aptdaemon
ii python-aptdaemon.gtk3widgets 1.1.1-1ubuntu5.2 all Python 2 GTK+ 3 widgets to run an aptdaemon client
ii python3-apt 0.9.3.5ubuntu2 amd64 Python 3 interface to libapt-pkg
ii python3-aptdaemon 1.1.1-1ubuntu5.2 all Python 3 module for the server and client of aptdaemon
ii python3-aptdaemon.gtk3widgets 1.1.1-1ubuntu5.2 all Python 3 GTK+ 3 widgets to run an aptdaemon client
ii python3-aptdaemon.pkcompat 1.1.1-1ubuntu5.2 all PackageKit compatibilty for AptDaemon
ii radeontool 1.6.3-1 amd64 utility to control ATI Radeon backlight functions on laptops
ii synaptic 0.81.2-4 amd64 Graphical package manager
ii toshset 1.76-4 amd64 Access much of the Toshiba laptop hardware interface
ii xserver-xorg-input-synaptics 1.7.4-0ubuntu1 amd64 Synaptics TouchPad driver for X.Org server
0
Judge_DT Messages postés 29412 Date d'inscription   Statut Modérateur Dernière intervention   9 671 > robert_mccann Messages postés 14 Date d'inscription   Statut Membre Dernière intervention  
 
Salut,

Le retour du "WHICH" n'est pas indiqué, c'est un oubli... ou il ne retourne rien? ;-)

Tente dans un terminal en root :
/usr/bin/apt-get
voir le retour annoncé. :-)
0
robert_mccann Messages postés 14 Date d'inscription   Statut Membre Dernière intervention   > Judge_DT Messages postés 29412 Date d'inscription   Statut Modérateur Dernière intervention  
 
J'ai ca en retour:
/usr/bin/apt-get

bash: /usr/bin/apt-get: No such file or directory

Je subodore qu'il manque un truc.......
0
Utilisateur anonyme
 
que donne
ls -l /usr/bin/apt-get
0
robert_mccann Messages postés 14 Date d'inscription   Statut Membre Dernière intervention   > Utilisateur anonyme
 
ls: cannot access /usr/bin/apt-get: No such file or directory
0
acohen612 Messages postés 900 Date d'inscription   Statut Membre Dernière intervention   165
 
Cela peut arriver si tu est déconnecter d'Internet bien que le signe WIFI/ Ethernet soit actif
0
robert_mccann Messages postés 14 Date d'inscription   Statut Membre Dernière intervention  
 
J'ai bien internet.
0
robert_mccann Messages postés 14 Date d'inscription   Statut Membre Dernière intervention  
 
Merci beaucoup pour votre rapidite les gars ;)
0
Flachy Joe Messages postés 2102 Date d'inscription   Statut Membre Dernière intervention   260
 
Salut,
tente ça :
sudo aptitude update
sudo aptitude dist-upgrade
sudo aptitude reinstall apt

0
robert_mccann Messages postés 14 Date d'inscription   Statut Membre Dernière intervention  
 
Salut! Ca donne ca:
sudo aptitude update

E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.
E: The method driver /usr/lib/apt/methods/http could not be found.

sudo aptitude dist-upgrade

No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

sudo aptitude reinstall apt

apt is not currently installed, so it will not be reinstalled.
apt is not currently installed, so it will not be reinstalled.
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
0

Vous n’avez pas trouvé la réponse que vous recherchez ?

Posez votre question
robert_mccann Messages postés 14 Date d'inscription   Statut Membre Dernière intervention  
 
Okay ca marche!

Voila ce que j'ai fait dans le cas de ma config (voir plus haut).

J'ai telecharger ce pack:
http://archive.ubuntu.com/ubuntu/pool/main/a/apt/apt-utils_1.0.1ubuntu2.13_amd64.deb

et suivie les instruction de @Rocailleux
cd ton/dossier/de/telechargement
dpkg -i lefichierquetuviensdetélécharger.deb (en root)

Probleme resolu ;)
Merci beaucoup pour votre aide!
Bonne soiree :)
Rob.
0
Utilisateur anonyme
 
ah ben voila
0
Utter Messages postés 423 Date d'inscription   Statut Membre Dernière intervention   19
 
Salut,
Probleme resolu
Parfait, tu pourrais donc donner un peu de couleur à la page, d'autant que c'est un sujet intéressant... ;)
,
0
robert_mccann Messages postés 14 Date d'inscription   Statut Membre Dernière intervention  
 
C'est fait ;)
0