#1 Le 28/06/2017, à 14:07
- creatiel
message d'erreur avec la commande APT
Bonjour à tous,
Si je tente une install ou une mise à jour,
depuis quelques temps, la console m'affiche ce genre d'erreur :
Lecture des listes de paquets... Fait
N: « 50unattended-upgrades.ucf-dist » dans le répertoire « /etc/apt/apt.conf.d/ » a été ignoré
car il utilise une extension non valable
Que faire ?
Merci / G.
Hors ligne
#2 Le 28/06/2017, à 14:46
- nam1962
Re : message d'erreur avec la commande APT
Donne :
ls /etc/apt/apt.conf.d -1
cat /etc/apt/sources.list
ls /etc/apt/sources.list.d -1
[ Modéré ]
Hors ligne
#3 Le 28/06/2017, à 14:59
- creatiel
Re : message d'erreur avec la commande APT
Merci de ta réactivité. Voici :
AlainG@Fuji-Poste-M-688:~$ sudo ls /etc/apt/apt.conf.d -1
00aptitude
00trustcdrom
01autoremove
01autoremove-kernels
01-vendor-ubuntu
10periodic
15update-stamp
20archive
20dbus
50appstream
50unattended-upgrades
50unattended-upgrades.ucf-dist
70debconf
99update-notifier
___________________
AlainG@Fuji-Poste-M-688:~$ sudo cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 14.04 LTS _Trusty Tahr_ - Release amd64 (20140417)]/ trusty 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 softAlainG@Fuji-Poste-M-688:~$ sudo ls /etc/apt/sources.list.d -1
saiarcot895-ubuntu-chromium-dev-xenial.list
saiarcot895-ubuntu-chromium-dev-xenial.list.save
ware 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
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
## 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 trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner
_____________________
AlainG@Fuji-Poste-M-688:~$ sudo ls /etc/apt/sources.list.d -1
saiarcot895-ubuntu-chromium-dev-xenial.list
saiarcot895-ubuntu-chromium-dev-xenial.list.save
Hors ligne
#4 Le 28/06/2017, à 15:07
- nam1962
Re : message d'erreur avec la commande APT
Vu.
Donc déjà tu peux virer le méchant :
sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-dist
Tes dépots ne sont pas propres
Passe un
gksudo gedit /etc/apt/sources.list
Si gksu et gedit ne sont pas installés :
sudo apt-get install gksu
sudo apt-get install gedit
Dans le fichier qui s'ouvre, remplace tout par tout ceci :
# 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, 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
## 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
Puis
sudo apt clean
sudo apt update && sudo apt full-upgrade
sudo apt autoremove --purge
Dernière modification par nam1962 (Le 28/06/2017, à 16:44)
[ Modéré ]
Hors ligne
#5 Le 28/06/2017, à 17:02
- creatiel
Re : message d'erreur avec la commande APT
Voilà, je suis en phase finale, il y a ce message :
│ Une nouvelle version (/etc/apt/apt.conf.d/50unattended-upgrades.ucftmp) du fichier de configuration │
│ /etc/apt/apt.conf.d/50unattended-upgrades est disponible mais la version actuellement utilisée a été modifiée localement. │
│ │
│ Action souhaitée pour le fichier de configuration modifié 50unattended-upgrades : │
│ │
│ Installer la version du responsable du paquet │
│ Garder la version actuellement installée
Dois-je valider la nouvelle version ??
Hors ligne
#6 Le 28/06/2017, à 17:23
- nam1962
Re : message d'erreur avec la commande APT
Oui, il vaut toujours mieux.
D'ailleurs cette mention d'une modif locale est curieuse !
Dernière modification par nam1962 (Le 28/06/2017, à 17:24)
[ Modéré ]
Hors ligne
#7 Le 28/06/2017, à 18:10
- creatiel
Re : message d'erreur avec la commande APT
Cependant, la dernière ligne de console lors de la purge :
N: « 50unattended-upgrades.ucf-old » dans le répertoire « /etc/apt/apt.conf.d/ » a été ignoré car il utilise une extension non valable
??
Hors ligne
#8 Le 28/06/2017, à 18:17
- nam1962
Re : message d'erreur avec la commande APT
J'ai déjà vu plusieurs fois ces curieuses extensions, je ne pige pas ce comportement.
Là il a du la mettre quand il a remplacé.
sudo rm /etc/apt/apt.conf.d/50unattended-upgrades.ucf-old
Puis re :
sudo apt update
sudo apt full-upgrade
sudo apt autoremove --purge
Il est toujours mieux de mettre les retours complets pour que les aidants suivent bien
[Edit] Je comprends un peu mieux, c'est manifestement issu d'une mise à niveau : https://askubuntu.com/questions/572976/ … 091#573091
Le seul truc idiot est que dans certains cas ça bloque les mises à jour dirait on...
Dernière modification par nam1962 (Le 28/06/2017, à 18:24)
[ Modéré ]
Hors ligne
#9 Le 28/06/2017, à 18:24
- nany
Re : message d'erreur avec la commande APT
Bonjour,
J'ai déjà vu plusieurs fois ces curieuses extensions, je ne pige pas ce comportement.
Là il a du la mettre quand il a remplacé.
Le fait d’avoir accepté la nouvelle version a renommé l’ancienne. C’est aussi simple que ça.
Les ucf-dist sont des renommages lors de la mise à niveau.
Hors ligne
#10 Le 28/06/2017, à 18:25
- nam1962
Re : message d'erreur avec la commande APT
Merci ! Je t'ai un peu grillé, mais tu le dis mieux que moi
[ Modéré ]
Hors ligne
#11 Le 28/06/2017, à 18:27
- nany
Re : message d'erreur avec la commande APT
[Edit] Je comprends un peu mieux, c'est manifestement issu d'une mise à niveau : https://askubuntu.com/questions/572976/ … 091#573091
Le seul truc idiot est que dans certains cas ça bloque les mises à jour dirait on...
Je n’ai jamais vu de cas bloquant.
C’est une notification non bloquante. Le truc c’est que c’est troublant et on a alors des demandes d’aide pour corriger cette « erreur ».
Hors ligne
#12 Le 28/06/2017, à 18:32
- nam1962
Re : message d'erreur avec la commande APT
Arf, oui...
Bon, maintenant, c'est peut-être une bonne précaution, mais c'est laid ! (et je comprends l'inquiétude des demandeurs)
[ Modéré ]
Hors ligne