Plus de mise a jour

Bonjour

Lorsque j’effectue la commande “apt-get update”, j’obtiens ceci :

maurice@maurice-Aspire-7738:~$ sudo apt-get update
[sudo] Mot de passe de maurice : 
N: « eid.list      list » dans le répertoire « /etc/apt/sources.list.d/ » a été ignoré car il utilise une extension non valable
N: « yannubuntu-ubuntu-boot-repair-bionic.listlist » dans le répertoire « /etc/apt/sources.list.d/ » a été ignoré car il utilise une extension non valable
N: « eid.list                                                                                                                                           liste  » dans le répertoire « /etc/apt/sources.list.d/ » a été ignoré car il utilise une extension non valable
E: Ligne 1 mal formée dans la liste des sources /etc/apt/sources.list.d/virtualbox.list (type)
E: La liste des sources ne peut être lue.
maurice@maurice-Aspire-7738:~$ 

Je precise que je suis sous ubuntu 18.04 LTS
Comment supprimer cette liste de la source.
Sauriez-vous comment procéder pour supprimer ces erreurs ?
Je précise que je suis vraiment débutant.
Je vous remercie par avance.

En règle générale pour Ubuntu c’est sur le forum Ubuntu que ça se passe :wink:

Sinon pour ton souci, c’est expliqué pourtant dans le message d’erreur :

1 J'aime

Je ne sais pas quelle commande pour le supprimer, si vous pouvez me dire ce que je peux ce serait très aimable.
J’ai déjà essayé chez ubuntu, malheureusement sans succès, à croire que ceux qui n’on pas une grande connaissance ne l’es intéresse pas.
Merci d’avance et bonne soiree

Bonjour,
Le fichier de contenant les informations sur le dépôt VirtualBox doit être incorrect.

Tu ouvres le terminal, puis tu tape ses commandes :

sudo -i
Le mot de passe root (Si tu sais pas, tape ton mot de passe de ta session)
gedit /etc/apt/sources.list.d/virtualbox.list
Si Gedit exit pas met nano à la place

Normalement une ligne correct commence par "deb … "
Si ta un doute , poste le contenu.
En attendant met un # devant la ligne pour transformer la ligne en commentaire.

Exemple (CF au Wiki Virtualbox de Ubuntu)

deb amd64 http://download.virtualbox.org/virtualbox/debian bionic contrib


Pourrais tu faire la commande suivante : ls /etc/apt/sources.list.d/

Les fichiers doivent porter l’extension .list (Sans E) pour qu’il soit pris en compte.

1 J'aime

J’ai pas gedit , j’ais fait avec nano je crois tout supprimé ainsi que les doublon.
J’ai pas trouvé le virtualbox quand j’ai fait nano.
voila ls

root@maurice-Aspire-7738:/home/maurice# ls /etc/apt/sources.list.d/
 eid.list
'eid.list      list'
'eid.list                                                                                                                                           liste '
 eid.list.save
 gerardpuig-ubuntu-ppa-bionic.list
 gerardpuig-ubuntu-ppa-bionic.list.save
 google-chrome.list
 google-chrome.list.save
 nom_du_fichier.save
 random-stuff-ubuntu-ppa-bionic.list
 random-stuff-ubuntu-ppa-bionic.list.save
 virtualbox.list
 virtualbox.list.save
 yannubuntu-ubuntu-boot-repair-bionic.list
 yannubuntu-ubuntu-boot-repair-bionic.listlist
 yannubuntu-ubuntu-boot-repair-bionic.list.save
root@maurice-Aspire-7738:/home/maurice# sudo nano /etc/apt/sources.list
root@maurice-Aspire-7738:/home/maurice# 

merci d’avance pour ce que vous faite

Les fichiers liste dans apt doivent avoir l’extension .list, et rien d’autre.

1 J'aime

RTFM
https://manpages.debian.org/stretch/apt/sources.list.5.fr.html

Oula, que donne le retour de la commande
grep -v "^#" /etc/apt/sources.list{,.d/*}
, j’ai peur de la réponse…

2 J'aime

Çà peut être rigolo ! Je suis le fil du coup :wink:

2 J'aime

J’ai voulu publier `Texte pgrep -v « ^# » /etc/apt/sources.list{,.d/*}
Pas moyen , j’ai ceci ((Désolé, les nouveaux utilisateurs ne peuvent insérer que 2 liens par message.))
J’ai aussi fait avec l’extention list et rien d’autre , pas moyen de le publier 2 liens par message

As-tu essayer de les encadrer avec ``` avant et après le résultat ?
(en répondant, tu devrais avoir le nombre minimum demandé, si je crois bien 5 réponses faites)

Pas besoin de lien, il suffit de recopier le résultat entre balises code ici :

    texte préformaté avec 3 ticks en haut et en bas

Le tick c’est altgr - è qui donne `

[Edit] grillé par @PengouinPdt :snail:

1 J'aime
maurice@maurice-Aspire-7738:~$ grep -v "^#" /etc/apt/sources.list{,.d/*}
/etc/apt/sources.list:deb-src http://archive.ubuntu.com/ubuntu bionic main restricted #Added by software-properties
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-updates main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic universe
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-updates universe
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic multiverse
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-updates multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-backports main restricted universe multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list:deb-src http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-security main restricted
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-security universe
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-security multiverse
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-proposed main multiverse restricted universe
/etc/apt/sources.list.d/eid.list:
/etc/apt/sources.list.d/eid.list:
/etc/apt/sources.list.d/eid.list      list:
/etc/apt/sources.list.d/eid.list      list:
/etc/apt/sources.list.d/eid.list      list:deb http://files.eid.belgium.be/debian bionic main
/etc/apt/sources.list.d/eid.list                                                                                                                                           liste :
/etc/apt/sources.list.d/eid.list                                                                                                                                           liste :
/etc/apt/sources.list.d/eid.list                                                                                                                                           liste :deb http://files.eid.belgium.be/debian bionic main
/etc/apt/sources.list.d/eid.list.save:
/etc/apt/sources.list.d/eid.list.save:
/etc/apt/sources.list.d/gerardpuig-ubuntu-ppa-bionic.list.save:deb http://ppa.launchpad.net/gerardpuig/ppa/ubuntu bionic main
/etc/apt/sources.list.d/google-chrome.list:deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
grep: /etc/apt/sources.list.d/nom_du_fichier.save: Permission non accordée
/etc/apt/sources.list.d/virtualbox.list:=
/etc/apt/sources.list.d/virtualbox.list.save:=
/etc/apt/sources.list.d/yannubuntu-ubuntu-boot-repair-bionic.listlist:deb http://ppa.launchpad.net/yannubuntu/boot-repair/ubuntu bionic main
maurice@maurice-Aspire-7738:~$ 

résumons:
les fichiers doivent finir par .list, sinon c’est pas grave mais ils font un message d’erreur

donc :
tu as un fichier qui s’appelle eid.listlist
renomme le :

sudo mv /etc/apt/sources.list.d/eid.list*list /etc/apt/sources.list.d/eid2.list

ensuite ton fichier /etc/apt/sources.list.d/virtualbox.list a des erreurs :

*poses-toi aussi la question : as-tu besoin de toutes ces sources ?
tu peux faire le ménage en virant tous les fichiers qui ne finissent pas pas .list

pour y voir plus clair :
tu pourrais enlever tous les fichiers de /etc/apt/sources.list.d/ et les mettre ailleurs , par exemple

mkdir -p /opt/sources.list.d/ && mv /etc/apt/sources.list.d/* /opt/sources.list.d/ && apt-get update

ensuite tu les rajoutes 1 par 1 , tu comprendras mieux ce qui se passe.

Normalement les vikings n’ont jamais peur, mais là, tu avais raison et même c’est pire !


Sur un truc aussi pourri, le plus rapide est une fresh install, et tant qu’à être ici, je suggère une DFLinux qui est simple à installer (et sur laquelle eID tourne sans soucis.)

Sinon, on peut tenter de nettoyer, mais il n’est pas garanti qu’il ne reste de la bouse dans les tuyaux.

Grosso, là il y a:

  • le dépôt proposed, qui est toxique (amène des paquets instables)
  • des PPA dans tous les sens, en double, parfois mal construits, amenant des saletés à la ubuntu-cleaner
  • un miroirr forcé (ubuntu.mirror.true.nl), donc pas forcément à jour.

si on veut nettoyer,

sudo rm /etc/apt/sources.list.d/*
  • enfin remettre le sources.list au propre avec le miroir pour toute la Hollande et non un miroir particulier en recopiant TOUT ce pavé dans le terminal (si on est en France, remplacer nl par fr):
sudo tee  /etc/apt/sources.list <<EOF
###### Ubuntu Main Repos
deb http://nl.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse 
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse 
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu bionic partner
EOF

Puis enfin nettoyage complet et mise à jour en passant ces commandes l’une après l’autre :

sudo apt clean
[[ $(dpkg -l | grep ^rc) ]] && sudo dpkg -P $(dpkg -l | grep ^rc | tr -s " " | cut -d " " -f 2)
sudo apt update
sudo apt full-upgrade
[[ $(apt-mark showmanual | egrep 'linux-.*[0-9]' | grep -v "hwe") ]] && sudo apt-mark auto $(apt-mark showmanual | egrep linux-.*[0-9] | grep -v "hwe")
sudo apt autoremove --purge

Ensuite tu diras les trucs dont tu as vraiment besoin, genre eID, Chrome (?? pas chromium ?) etc, on pourra te dire comment les installer et si il y a vraiment besoin d’un PPA.

Si tu choisis de tenter le nettoyage donne ici TOUS les retours de commande !

maurice@maurice-Aspire-7738:~$ sudo rm /etc/apt/sources.list.d/*
[sudo] Mot de passe de maurice : 
rm: impossible de supprimer '/etc/apt/sources.list.d/*': Aucun fichier ou dossier de ce type
maurice@maurice-Aspire-7738:~$ 

il ne trouve pas ??
voici une list avec grep

maurice@maurice-Aspire-7738:~$ grep -v "^#" /etc/apt/sources.list{,.d/*}
/etc/apt/sources.list:deb-src http://archive.ubuntu.com/ubuntu bionic main restricted #Added by software-properties
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-updates main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic universe
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-updates universe
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic multiverse
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-updates multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-backports main restricted universe multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list:deb-src http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-security main restricted
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-security universe
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-security multiverse
/etc/apt/sources.list:deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-proposed main multiverse restricted universe
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse 
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse 
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse 
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse 
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse 
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse 
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse 
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse 
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse 
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse 
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse 
/etc/apt/sources.list:deb http://nl.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse 
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://archive.canonical.com/ubuntu bionic partner
grep: /etc/apt/sources.list.d/*: Aucun fichier ou dossier de ce type
maurice@maurice-Aspire-7738:~$ 

Tu as du passer la commande rm deux fois.
Et moi j’ai mis un -a superfétatoire dans le pavé à recopier.
Pas grave repasse la commande pour avoir un sources.list propre
(pour le voir après : cat /etc/apt/sources.list
ATTENTION : bien commencer par nettoyer proposed avec le tuto du lien fourni au début !

Pas moyen de publier cat /etc/apt/sources.list, meme avec le tick `
Je suis désolé.
Comment virer tout ce qui vient du : https://dolys.fr/forums/topic/tuto-supprimer-les-depots-proposed/

maurice@maurice-Aspire-7738:~$ sudo rm /etc/apt/sources.list.d/*
[sudo] Mot de passe de maurice : 
Désolé, essayez de nouveau.
[sudo] Mot de passe de maurice : 
rm: impossible de supprimer '/etc/apt/sources.list.d/*': Aucun fichier ou dossier de ce type
maurice@maurice-Aspire-7738:~$
maurice@maurice-Aspire-7738:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main restricted
deb-src http://archive.ubuntu.com/ubuntu bionic main restricted #Added by software-properties

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://ubuntu.mirror.true.nl/ubuntu/ bionic main restricted
# deb-src http://be.archive.ubuntu.com/ubuntu/ bionic main restricted

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

deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted
deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-security universe
# deb-src http://security.ubuntu.com/ubuntu bionic-security universe
deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu bionic-security multiverse
deb http://ubuntu.mirror.true.nl/ubuntu/ bionic-proposed main multiverse restricted universe
# deb-src http://archive.canonical.com/ubuntu bionic partner
###### Ubuntu Main Repos
deb http://nl.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse 
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse 
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu bionic partner
###### Ubuntu Main Repos
deb http://nl.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse 
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse 
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu bionic partner
###### Ubuntu Main Repos
deb http://nl.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse 

###### Ubuntu Update Repos
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse 
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-updates main restricted universe multiverse 
deb http://nl.archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse 

###### Ubuntu Partner Repo
deb http://archive.canonical.com/ubuntu bionic partner

et si tu commençais par passer à debian?
j’ai aussi commencé par ubuntu ( breezer je crois ) mais debian tu prends moins la tête
Quitte à garder ubuntu , je mets une mint