Problème E: impossible d’obtenir le verrou
Bonjour a tous
J’utulise Depuis peu Linux et
j'ai un probleme pour installer des paquets j’ai voulu faire sudo apt-get install ocaml sur mon terminal et il m’affiche une erreur
E:impossible d’obtenir le verrou /var/cache/apt/archives/lock -open(11: Ressource temporairement non disponible)
E:Impossible de verrouiller le répertoire /var/cache/apt/archives/ j’ai cherché des solutions sur les forums mais apparemment rien ne marche
Merci de bien vouloir m’aider A régler ça
J’utulise Depuis peu Linux et
j'ai un probleme pour installer des paquets j’ai voulu faire sudo apt-get install ocaml sur mon terminal et il m’affiche une erreur
E:impossible d’obtenir le verrou /var/cache/apt/archives/lock -open(11: Ressource temporairement non disponible)
E:Impossible de verrouiller le répertoire /var/cache/apt/archives/ j’ai cherché des solutions sur les forums mais apparemment rien ne marche
Merci de bien vouloir m’aider A régler ça
2 réponses
-
Bonjour,
Assure-toi qu'aucun logiciel de gestion des paquets n'est ouvert. (Redémarre le pc pour en être certaine)
Ouvre le terminal et tape :sudo rm /var/cache/apt/archives/lock
Et essaie à nouveau.
Explication : lorsque tu as lancé le gestionnaire de paquets, apt a créé un fichier verrou dont le rôle est d'empêcher l'ouverture simultanée de deux sessions du gestionnaire de paquets (ce qui qui mettrait une belle pagaille). Si le gestionnaire de paquets est interrompu brutalement pendant qu'il travaille, (un kill par exemple) le fichier verrou n'est pas effacé et bloque le lancement de toute nouvelle session du gestionnaire de paquets.-
-
-
@jns55Non rien derrière juste le
E: Sub-process /usr/bin/dpkg returned an error code (1) -
Probable que ton sources.list a été corrompu.
Regarde dans /etc/apt/
Si tu vois un fichier sources.list, donne son contenu (ce fichier est optionnel).
Regarde maintenant /etc/apt/sources.list.d. Il doit y avoir plusieurs fichiers avec l'extension .list dedans. Il faudrait donner le contenu de chacun de ces fichiers pour qu'on voie s'il y a une incohérence dedans.
Te souviens-tu des manip que tu as faites avant que ce problème n'apparaisse (je pense à des installation/suppression de programme ou modifications de dépôts) ? -
alors pour le contenu de sources.list
#deb cdrom:[Ubuntu 16.04.3 LTS _Xenial Xerus_ - Release amd64 (20170801)]/ xenial main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial universe
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
# deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner
deb http://security.ubuntu.com/ubuntu xenial-security main restricted
# deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted
deb http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
deb http://security.ubuntu.com/ubuntu xenial-security multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
et pour /etc/apt/sources.list.d il y a juste
sublime-text.list dedans et son contenu:
deb https://download.sublimetext.com/ apt/stable/
et concernant les manips je ne me souviens pas de ce que j'ai fait
-