Problème package manager

Résolu
yoan -  
mamiemando Messages postés 33769 Date d'inscription   Statut Modérateur Dernière intervention   -
Bonjour,

J'ai eu un soucis à l'installation de l'environnement cozy, et il y a depuis un problème avec les mises à jours.
J'ai le fameux sens interdit dans la barre des tâches, avec le message d'erreur
"Opening the cache (E: Opening /etc/apt/sources.list.d/nodesource.list-ifstream::ifstream (13: permission denied), E: the list of source could not be read)


J'ai essayé de désinstallé cozy, mais celui ci n'étant pas bien installé, je n'avais pas accès aux paquets me permettant de le faire proprement.

Après avoir parcouru ce forum et un autre en anglais, j'ai exécuté

sudo rm -vf /var/lib/apt/lists/* -vf
sudo apt-get update
sudo apt-get upgrade
sudo apt-get -f install
sudo dpkg --configure -a


Tout ceci n'a pas résolu mon problème.
j'ai donc fait une recherche sur tous les fichiers et dossier contenant le mot "cozy", et je les ai supprimés en mode admin.

J'ai redonner les commandes si dessous... et mon problème persiste...

à cette heure, la commande
sudo apt-get update
donne :

Hit:1 http://archive.canonical.com/ubuntu/ raring InRelease
Hit:2 http://archive.ubuntu.com/ubuntu/ xenial InRelease
Ign:3 http://dl.google.com/linux/talkplugin/deb stable InRelease
Hit:4 http://archive.ubuntu.com/ubuntu/ xenial-updates InRelease
Hit:5 http://dl.google.com/linux/talkplugin/deb stable Release
Hit:6 http://archive.ubuntu.com/ubuntu/ xenial-backports InRelease
Hit:7 http://archive.ubuntu.com/ubuntu/ xenial-security InRelease
Hit:9 https://deb.nodesource.com/node_4.x/ xenial InRelease


et celle
sudo apt-get upgrade
:

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
linux-generic linux-headers-generic linux-image-generic
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

enfin, celle sudo apt-get -f install :
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.


voilà, merci beaucoup à celui ou celle qui se penchera sur mon problème...

A voir également:

5 réponses

mamiemando Messages postés 33769 Date d'inscription   Statut Modérateur Dernière intervention   7 878
 
Bonjour,

Peux-tu nous donner le contenu de
/etc/apt/sources.list
? Car en gros j'ai l'impression que tu as ajouté des dépôts pour nodesource et que ceux-ci sont mal configurés.

Si tu veux ajouter ce dépôt voici comment faire :
https://github.com/nodesource/distributions/issues/42

Si tu n'en as pas besoin, supprime le de
/etc/apt/sources.list
.

Bonne chance
0
bdcht Messages postés 4 Date d'inscription   Statut Membre Dernière intervention  
 
Bonjour, et merci de te pencher sur mon problème,
voici le contenu de source.list:

# deb cdrom:[Ubuntu 13.04 _Raring Ringtail_ - Release i386 (20130424)]/ raring main restricted

# See https://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu/ xenial main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ xenial-updates main restricted
deb-src http://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://archive.ubuntu.com/ubuntu/ xenial universe
deb-src http://archive.ubuntu.com/ubuntu/ xenial universe
deb http://archive.ubuntu.com/ubuntu/ xenial-updates universe
deb-src http://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://archive.ubuntu.com/ubuntu/ xenial multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial multiverse
deb http://archive.ubuntu.com/ubuntu/ xenial-updates multiverse
deb-src http://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://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ xenial-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ xenial-security main restricted
deb http://archive.ubuntu.com/ubuntu/ xenial-security universe
deb-src http://archive.ubuntu.com/ubuntu/ xenial-security universe
deb http://archive.ubuntu.com/ubuntu/ xenial-security multiverse
deb-src http://archive.ubuntu.com/ubuntu/ xenial-security 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/ raring partner
deb-src http://archive.canonical.com/ubuntu/ raring partner

# deb http://download.ebz.epson.net/dsc/op/stable/debian/ lsb3.2 main # disabled on upgrade to xenial
0
mamiemando Messages postés 33769 Date d'inscription   Statut Modérateur Dernière intervention   7 878
 
Quelque chose m'échappe, pourquoi apt cherche-t'il
/etc/apt/sources.list.d/nodesource.list
? C'est un dépôt que tu as ajouté ?

Que donne :

grep -nri node /etc/apt


Si ce n'est pas dans
/etc/apt
qu'il est référencé, peut-être as-tu un reliquat dans
/var/lib/apt
mais du coup, ce que tu as raconté dans ton premier message aurait dû l'effacer...
0
bdcht Messages postés 4 Date d'inscription   Statut Membre Dernière intervention  
 
voici ce que donne la recherche :

texier@texier-Satellite-Pro-L350:~$ sudo grep -nri node /etc/apt
[sudo] password for texier:
/etc/apt/sources.list.d/nodesource.list.save:1:# deb https://deb.nodesource.com/node_4.x/ xenial main
/etc/apt/sources.list.d/nodesource.list.save:2:# deb-src https://deb.nodesource.com/node_4.x/ xenial main
/etc/apt/sources.list.d/nodesource.list:1:# deb https://deb.nodesource.com/node_4.x/ xenial main
/etc/apt/sources.list.d/nodesource.list:2:# deb-src https://deb.nodesource.com/node_4.x/ xenial main
0

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

Posez votre question
bdcht Messages postés 4 Date d'inscription   Statut Membre Dernière intervention  
 
du coup j'ai supprimé les deux fichiers nodesource (qui ne contiennent pas l'expression "cozy", donc que je n'ai pas supprimé avant) et cela semble avoir résolu le problème...
ubuntu software et update ne renvoient plus d'erreur...

par contre, le sens interdit là haut est toujours là, je redémarre l'ordi pour voir...
0
bdcht Messages postés 4 Date d'inscription   Statut Membre Dernière intervention  
 
bon et bien à priori, plus de soucis du tout, merci beaucoup !
bonne continuation
0
mamiemando Messages postés 33769 Date d'inscription   Statut Modérateur Dernière intervention   7 878
 
Merci pour ton retour, et bonne continuation également :-)
0