Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 01/04/2022, à 10:50

imost

[Résolu]Problème pour régénérer le sources.list

Bonjour Nany,
j'ai commencé

./viewtopic.php?id=2059054 a écrit :

ton tuto

et on dirait que ça bug...
Je précise que je suis Nul dans le domaine.
Voici ce qui se passe:

tictoc@tictoc-Inspiron-1545:~$ cp -Tv /etc/apt/sources.list ~/sources.list.copy
'/etc/apt/sources.list' -> '/home/tictoc/sources.list.copy'
tictoc@tictoc-Inspiron-1545:~$ wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl
## template:jinja
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb {{mirror}} {{codename}} main restricted
# deb-src {{mirror}} {{codename}} main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb {{mirror}} {{codename}}-updates main restricted
# deb-src {{mirror}} {{codename}}-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 {{mirror}} {{codename}} universe
# deb-src {{mirror}} {{codename}} universe
deb {{mirror}} {{codename}}-updates universe
# deb-src {{mirror}} {{codename}}-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 {{mirror}} {{codename}} multiverse
# deb-src {{mirror}} {{codename}} multiverse
deb {{mirror}} {{codename}}-updates multiverse
# deb-src {{mirror}} {{codename}}-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 {{mirror}} {{codename}}-backports main restricted universe multiverse
# deb-src {{mirror}} {{codename}}-backports main restricted universe multiverse

deb {{security}} {{codename}}-security main restricted
# deb-src {{security}} {{codename}}-security main restricted
deb {{security}} {{codename}}-security universe
# deb-src {{security}} {{codename}}-security universe
deb {{security}} {{codename}}-security multiverse
# deb-src {{security}} {{codename}}-security multiverse
tictoc@tictoc-Inspiron-1545:~$ sed "1,8d"
wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl | sed "1,8d"

Dernière modification par imost (Le 03/04/2022, à 15:04)


Ubuntu 22.04 LTS

Hors ligne

#2 Le 01/04/2022, à 11:00

imost

Re : [Résolu]Problème pour régénérer le sources.list

Quand je fait le sed , il ne se passe plus rien


Ubuntu 22.04 LTS

Hors ligne

#3 Le 01/04/2022, à 11:12

imost

Re : [Résolu]Problème pour régénérer le sources.list

Désolé , je viens de comprendre:lol::lol::lol:

Dernière modification par imost (Le 01/04/2022, à 17:43)


Ubuntu 22.04 LTS

Hors ligne

#4 Le 01/04/2022, à 18:21

imost

Re : [Résolu]Problème pour régénérer le sources.list

Re-bonjour,
j'ai donc suivis le tuto mais j 'ai l'impression que mon sources.list est toujours le même.
Voici ce que j'ai fais et ce que ça donne:

tictoc@tictoc-Inspiron-1545:~$ cp -Tv /etc/apt/sources.list ~/sources.list.copy
'/etc/apt/sources.list' -> '/home/tictoc/sources.list.copy'
tictoc@tictoc-Inspiron-1545:~$ wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl
## template:jinja
## Note, this file is written by cloud-init on first boot of an instance
## modifications made here will not survive a re-bundle.
## if you wish to make changes you can:
## a.) add 'apt_preserve_sources_list: true' to /etc/cloud/cloud.cfg
##     or do the same in user-data
## b.) add sources in /etc/apt/sources.list.d
## c.) make changes to template file /etc/cloud/templates/sources.list.tmpl

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb {{mirror}} {{codename}} main restricted
# deb-src {{mirror}} {{codename}} main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb {{mirror}} {{codename}}-updates main restricted
# deb-src {{mirror}} {{codename}}-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 {{mirror}} {{codename}} universe
# deb-src {{mirror}} {{codename}} universe
deb {{mirror}} {{codename}}-updates universe
# deb-src {{mirror}} {{codename}}-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 {{mirror}} {{codename}} multiverse
# deb-src {{mirror}} {{codename}} multiverse
deb {{mirror}} {{codename}}-updates multiverse
# deb-src {{mirror}} {{codename}}-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 {{mirror}} {{codename}}-backports main restricted universe multiverse
# deb-src {{mirror}} {{codename}}-backports main restricted universe multiverse

deb {{security}} {{codename}}-security main restricted
# deb-src {{security}} {{codename}}-security main restricted
deb {{security}} {{codename}}-security universe
# deb-src {{security}} {{codename}}-security universe
deb {{security}} {{codename}}-security multiverse
# deb-src {{security}} {{codename}}-security multiverse
tictoc@tictoc-Inspiron-1545:~$ sed "1,8d"
wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl | sed "1,8d"


^C
tictoc@tictoc-Inspiron-1545:~$ sed "1,8d"
^C
tictoc@tictoc-Inspiron-1545:~$ 
tictoc@tictoc-Inspiron-1545:~$ sudo apt update
[sudo] Mot de passe de tictoc : 
Atteint :1 http://archive.canonical.com/ubuntu focal InRelease                 
Atteint :2 http://ppa.launchpad.net/libreoffice/ppa/ubuntu focal InRelease     
Atteint :3 http://fr.archive.ubuntu.com/ubuntu focal InRelease                 
Atteint :4 http://fr.archive.ubuntu.com/ubuntu focal-updates InRelease      
Atteint :5 http://fr.archive.ubuntu.com/ubuntu focal-backports InRelease    
Atteint :6 http://fr.archive.ubuntu.com/ubuntu focal-security InRelease
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Tous les paquets sont à jour.
tictoc@tictoc-Inspiron-1545:~$ sed "1,8d"



^C
tictoc@tictoc-Inspiron-1545:~$ wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl | sed "1,8d"

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb {{mirror}} {{codename}} main restricted
# deb-src {{mirror}} {{codename}} main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb {{mirror}} {{codename}}-updates main restricted
# deb-src {{mirror}} {{codename}}-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 {{mirror}} {{codename}} universe
# deb-src {{mirror}} {{codename}} universe
deb {{mirror}} {{codename}}-updates universe
# deb-src {{mirror}} {{codename}}-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 {{mirror}} {{codename}} multiverse
# deb-src {{mirror}} {{codename}} multiverse
deb {{mirror}} {{codename}}-updates multiverse
# deb-src {{mirror}} {{codename}}-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 {{mirror}} {{codename}}-backports main restricted universe multiverse
# deb-src {{mirror}} {{codename}}-backports main restricted universe multiverse

deb {{security}} {{codename}}-security main restricted
# deb-src {{security}} {{codename}}-security main restricted
deb {{security}} {{codename}}-security universe
# deb-src {{security}} {{codename}}-security universe
deb {{security}} {{codename}}-security multiverse
# deb-src {{security}} {{codename}}-security multiverse
tictoc@tictoc-Inspiron-1545:~$ wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl | sed "1,8d;s#{{mirror}}#http://fr.archive.ubuntu.com/ubuntu/#;s#{{codename}}#$(lsb_release -sc)#;s#{{security}}#http://security.ubuntu.com/ubuntu#"

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

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

deb http://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
tictoc@tictoc-Inspiron-1545:~$ wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl | sed "1,8d;s#{{mirror}}#http://fr.archive.ubuntu.com/ubuntu/#;s#{{codename}}#$(lsb_release -sc)#;s#{{security}}#http://security.ubuntu.com/ubuntu#;9i\\$(test -s /var/log/installer/media-info && awk -F'[ "]' '{if ( $3 ) {cn = $5} else {cn = $4};gsub("\"","_",$0);print "# deb-cdrom:["$0"]/ "tolower(cn)" main restricted"}' /var/log/installer/media-info)"
# deb-cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal 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/ focal main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal main restricted

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

deb http://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
tictoc@tictoc-Inspiron-1545:~$ wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl | sed "1,8d;s#{{mirror}}#http://fr.archive.ubuntu.com/ubuntu/#;s#{{codename}}#$(lsb_release -sc)#;s#{{security}}#http://security.ubuntu.com/ubuntu#;9i\\$(test -s /var/log/installer/media-info && awk -F'[ "]' '{if ( $3 ) {cn = $5} else {cn = $4};gsub("\"","_",$0);print "# deb-cdrom:["$0"]/ "tolower(cn)" main restricted"}' /var/log/installer/media-info)" | sudo tee /etc/apt/sources.list{,.save}
# deb-cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal 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/ focal main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal main restricted

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

deb http://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
tictoc@tictoc-Inspiron-1545:~$ cd /etc/apt/sources.list.d
tictoc@tictoc-Inspiron-1545:/etc/apt/sources.list.d$ cat
^C
tictoc@tictoc-Inspiron-1545:/etc/apt/sources.list.d$ cat sources.list.d
cat: sources.list.d: Aucun fichier ou dossier de ce type
tictoc@tictoc-Inspiron-1545:/etc/apt/sources.list.d$ cd
tictoc@tictoc-Inspiron-1545:~$ cat
^C
tictoc@tictoc-Inspiron-1545:~$ cd /etc/apt/sources.list.d
tictoc@tictoc-Inspiron-1545:/etc/apt/sources.list.d$ ls
libreoffice-ubuntu-ppa-focal.list
libreoffice-ubuntu-ppa-focal.list.save
nilarimogard-ubuntu-webupd8-focal.list
nilarimogard-ubuntu-webupd8-focal.list.save
webupd8team-ubuntu-unstable-focal.list
webupd8team-ubuntu-unstable-focal.list.save
tictoc@tictoc-Inspiron-1545:/etc/apt/sources.list.d$ cd
tictoc@tictoc-Inspiron-1545:~$ sudo sed -ri "s/(ubuntu\/* ) *[a-z]*/\1$(lsb_release -sc)/" /etc/apt/sources.list
[sudo] Mot de passe de tictoc : 
tictoc@tictoc-Inspiron-1545:~$ cd /etc/apt/sources.list.d
tictoc@tictoc-Inspiron-1545:/etc/apt/sources.list.d$ ls
libreoffice-ubuntu-ppa-focal.list
libreoffice-ubuntu-ppa-focal.list.save
nilarimogard-ubuntu-webupd8-focal.list
nilarimogard-ubuntu-webupd8-focal.list.save
webupd8team-ubuntu-unstable-focal.list
webupd8team-ubuntu-unstable-focal.list.save

Désolé pour la longueur, et merci d'avance pour l'aide...


Ubuntu 22.04 LTS

Hors ligne

#5 Le 02/04/2022, à 08:54

geole

Re : [Résolu]Problème pour régénérer le sources.list

Bonjour
Il faut faire tout le copier/coller et pas seulement le début


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#6 Le 02/04/2022, à 10:07

imost

Re : [Résolu]Problème pour régénérer le sources.list

Bonjour
je crois comprendre qu il faut aller sur https://github.com/supernany/sources-list-gen et faire un copier-coller mais de quoi exactement et comment ?
Merci d'avance


Ubuntu 22.04 LTS

Hors ligne

#7 Le 02/04/2022, à 10:11

geole

Re : [Résolu]Problème pour régénérer le sources.list

Je pensais que te fournir le lien aurait suffit.
Voici donc la commande

wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl | sed "1,8d;s#{{mirror}}#http://fr.archive.ubuntu.com/ubuntu/#;s#{{codename}}#$(lsb_release -sc)#;s#{{security}}#http://security.ubuntu.com/ubuntu#;9i\\$(test -s /var/log/installer/media-info && awk -F'[ "]' '{if ( $3 ) {cn = $5} else {cn = $4};gsub("\"","_",$0);print "# deb-cdrom:["$0"]/ "tolower(cn)" main restricted"}' /var/log/installer/media-info)" | sudo tee /etc/apt/sources.list{,.save}

Tu constateras qu elle se  termine par une écriture dans le fichier avec la commande tee

Dernière modification par geole (Le 02/04/2022, à 10:12)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

En ligne

#8 Le 02/04/2022, à 23:00

imost

Re : [Résolu]Problème pour régénérer le sources.list

Re-bonjour
j ai lancé la commande dans un terminal et ça suffit? Car quand je liste mon sources.list.d, il est identique.
D'autre part, à moins que je me trompe, je crois comprendre que cette ligne de commande est à utiliser à nos risques et périls et qu'il valait mieux utiliser le script de Nany...

Dernière modification par imost (Le 02/04/2022, à 23:20)


Ubuntu 22.04 LTS

Hors ligne

#9 Le 03/04/2022, à 04:55

nany

Re : [Résolu]Problème pour régénérer le sources.list

Bonjour,



imost a écrit :

j ai lancé la commande dans un terminal et ça suffit? Car quand je liste mon sources.list.d, il est identique.

La ligne de commandes a parfaitement rempli son rôle.

imost a écrit :
…
tictoc@tictoc-Inspiron-1545:~$ wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl | sed "1,8d;s#{{mirror}}#http://fr.archive.ubuntu.com/ubuntu/#;s#{{codename}}#$(lsb_release -sc)#;s#{{security}}#http://security.ubuntu.com/ubuntu#;9i\\$(test -s /var/log/installer/media-info && awk -F'[ "]' '{if ( $3 ) {cn = $5} else {cn = $4};gsub("\"","_",$0);print "# deb-cdrom:["$0"]/ "tolower(cn)" main restricted"}' /var/log/installer/media-info)" | sudo tee /etc/apt/sources.list{,.save}
# deb-cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal 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/ focal main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal main restricted

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

deb http://security.ubuntu.com/ubuntu focal-security main restricted
# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
deb http://security.ubuntu.com/ubuntu focal-security universe
# deb-src http://security.ubuntu.com/ubuntu focal-security universe
deb http://security.ubuntu.com/ubuntu focal-security multiverse
# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
tictoc@tictoc-Inspiron-1545:~$…

Le fichier sources.list est bien modifié.
En revanche je n’ai jamais dit que cette ligne modifiait de quelque manière que ce soit le répertoire sources.list.d.
Si tu veux voir le contenu du sources.list ET des fichiers .list du répertoire sources.list.d, utilise cette commande :

find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n\t$1\n"; [[ $1 = *".list" ]] && cat -n "$1"' _ '{}' \;

Et si tu rencontre un problème (de mise à jour ou autre) avec sources.list.d, expose-le.

imost a écrit :

D'autre part, à moins que je me trompe, je crois comprendre que cette ligne de commande est à utiliser à nos risques et périls et qu'il valait mieux utiliser le script de Nany...

Le script fait globalement la même chose que la ligne de commandes. Il est juste plus facile à lire (puisque les commandes sont décomposées) donc à comprendre.

Dernière modification par nany (Le 03/04/2022, à 04:55)

En ligne

#10 Le 03/04/2022, à 09:02

imost

Re : [Résolu]Problème pour régénérer le sources.list

Bonjour et merci pour cette mise au clair.
Effectivement, concernant mon sources.list.d, j'ai lu sur le forum, que certains des éléments ne sont pas bon,mais impossible de retrouver la discussion.

Voici ce que ça donne:

tictoc@tictoc-Inspiron-1545:~$ ls /etc/apt/sources.list.d
libreoffice-ubuntu-ppa-focal.list
libreoffice-ubuntu-ppa-focal.list.save
nilarimogard-ubuntu-webupd8-focal.list
nilarimogard-ubuntu-webupd8-focal.list.save
webupd8team-ubuntu-unstable-focal.list
webupd8team-ubuntu-unstable-focal.list.save
tictoc@tictoc-Inspiron-1545:~$ 

j ai lu que nilarimogard est a supprimer.
webupd8team, est instable?

Est ce que je dois changer tout ça? Si oui comment?


Ubuntu 22.04 LTS

Hors ligne

#11 Le 03/04/2022, à 09:07

xubu1957

Re : [Résolu]Problème pour régénérer le sources.list

Bonjour,

Tu as des avis de nam1962.


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#12 Le 03/04/2022, à 09:30

imost

Re : [Résolu]Problème pour régénérer le sources.list

ok je dois purger tout ça?


Ubuntu 22.04 LTS

Hors ligne

#13 Le 03/04/2022, à 09:39

xubu1957

Re : [Résolu]Problème pour régénérer le sources.list

J'ai noté cette explication pour examiner les PPA :

Le 06/10/2017, nam1962 a écrit :
Jansma a écrit :

(...) mais comment tu fais pour savoir tout ça ? Tu connais par cœur le nom de tous les ppa de tous les logiciels ?

Tu reprends le début de chacun de tes PPA et tu ajoutes "launchpad" puis recherche Goo (ou autre)

Exemple : freetuxtv-freetuxtv-dev launchpad envoie sur https://launchpad.net/~freetuxtv/+archi … etuxtv-dev

Ce qui donne en plus la bonne syntaxe pour installer le PPA :

sudo add-apt-repository ppa:freetuxtv/freetuxtv-dev

MAIS !
Si, sur la page Launchpad, dans Technical details about this PPA - Choose your ubuntu version on voit bien xenial, on voit surtout dans le pavé de droite que ça n'a pas été maintenu depuis 49 semaines (et donc que c'est à oublier)

Ceci permet de faire un rappel : les PPA sont réservés à ceux qui savent gérer ! tongue

La Doc § 5.3.1 > ppa


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#14 Le 03/04/2022, à 09:52

imost

Re : [Résolu]Problème pour régénérer le sources.list

moi je ne sais pas gérer les ppa et la seule chose que je comprends est que nilarimogard est toxique.
J aimerais pouvoir repartir sur une configuration propre et stable.
Je ne sais meme pas comment c'est arrivé sur mon pc.


Ubuntu 22.04 LTS

Hors ligne

#15 Le 03/04/2022, à 09:57

xubu1957

Re : [Résolu]Problème pour régénérer le sources.list

Je n'ai plus de ppa sur mon système, et comme cela amène des dépendances, je laisse la main aux aidants qui savent !


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#16 Le 03/04/2022, à 10:22

imost

Re : [Résolu]Problème pour régénérer le sources.list

je viens d'essayer de le supprimer mais apparemment ça ne marche pas

tictoc@tictoc-Inspiron-1545:~$ sudo ppa-purge ppa:nilarimogard-ubuntu-webupd8-focal.list
Updating packages lists
PPA to be removed: ppa:nilarimogard-ubuntu-webupd8-focal.list 
ppa:nilarimogard-ubuntu-webupd8-focal.list
Warning:  Could not find package list for PPA: 
ppa:nilarimogard-ubuntu-webupd8-focal.list 
ppa:nilarimogard-ubuntu-webupd8-focal.list
tictoc@tictoc-Inspiron-1545:~$ 
tictoc@tictoc-Inspiron-1545:~$ ls -l /etc/apt/sources.list.d/
total 8
-rw-r--r-- 1 root root 130 avril  1 20:53 libreoffice-ubuntu-ppa-focal.list
-rw-r--r-- 1 root root 130 avril  1 20:53 libreoffice-ubuntu-ppa-focal.list.save
-rw-r--r-- 1 root root   0 juil.  6  2020 nilarimogard-ubuntu-webupd8-focal.list
-rw-r--r-- 1 root root   0 juil.  6  2020 nilarimogard-ubuntu-webupd8-focal.list.save
-rw-r--r-- 1 root root   0 juil.  5  2020 webupd8team-ubuntu-unstable-focal.list
-rw-r--r-- 1 root root   0 juil.  5  2020 webupd8team-ubuntu-unstable-focal.list.save
tictoc@tictoc-Inspiron-1545:~$ 

Ubuntu 22.04 LTS

Hors ligne

#17 Le 03/04/2022, à 10:26

imost

Re : [Résolu]Problème pour régénérer le sources.list

mais ce que je ne comprends pas, c'est que dans la doc on nous dit de l'installer


Ubuntu 22.04 LTS

Hors ligne

#18 Le 03/04/2022, à 10:26

xubu1957

Re : [Résolu]Problème pour régénérer le sources.list

Essaye :

sudo ppa-purge ppa:nilarimogard/webupd8

Vu le nom pour l'installer ppa:nilarimogard/webupd8


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#19 Le 03/04/2022, à 10:39

imost

Re : [Résolu]Problème pour régénérer le sources.list

marche pas


Ubuntu 22.04 LTS

Hors ligne

#20 Le 03/04/2022, à 11:37

xubu1957

Re : [Résolu]Problème pour régénérer le sources.list

moko138 a écrit :

/!\  "Ça ne marche pas" n'est pas une information utile.

  Pour aider le forum à vous aider, quand vous avez trouvé une commande dans la Documentation ou qu'on vous l'a indiquée, veuillez en donner le retour complet et entre balises code.


Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#21 Le 03/04/2022, à 11:40

xubu1957

Re : [Résolu]Problème pour régénérer le sources.list

Fournis :

find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n\t$1\n"; [[ $1 = *".list" ]] && cat -n "$1"' _ '{}' \;

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#22 Le 03/04/2022, à 12:14

imost

Re : [Résolu]Problème pour régénérer le sources.list

tictoc@tictoc-Inspiron-1545:~$ find /etc/apt -type f -name '*.list*' -exec bash -c 'echo -e "\n\t$1\n"; [[ $1 = *".list" ]] && cat -n "$1"' _ '{}' \;

	/etc/apt/sources.list.d/webupd8team-ubuntu-unstable-focal.list.save


	/etc/apt/sources.list.d/libreoffice-ubuntu-ppa-focal.list

     1	deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu focal main
     2	deb-src http://ppa.launchpad.net/libreoffice/ppa/ubuntu focal main

	/etc/apt/sources.list.d/webupd8team-ubuntu-unstable-focal.list


	/etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-focal.list


	/etc/apt/sources.list.d/nilarimogard-ubuntu-webupd8-focal.list.save


	/etc/apt/sources.list.d/libreoffice-ubuntu-ppa-focal.list.save


	/etc/apt/sources.list.save


	/etc/apt/sources.list

     1	# deb-cdrom:[Ubuntu 20.04 LTS _Focal Fossa_ - Release amd64 (20200423)]/ focal main restricted
     2	
     3	# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
     4	# newer versions of the distribution.
     5	deb http://fr.archive.ubuntu.com/ubuntu/ focal main restricted
     6	# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal main restricted
     7	
     8	## Major bug fix updates produced after the final release of the
     9	## distribution.
    10	deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
    11	# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-updates main restricted
    12	
    13	## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    14	## team. Also, please note that software in universe WILL NOT receive any
    15	## review or updates from the Ubuntu security team.
    16	deb http://fr.archive.ubuntu.com/ubuntu/ focal universe
    17	# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal universe
    18	deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe
    19	# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-updates universe
    20	
    21	## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
    22	## team, and may not be under a free licence. Please satisfy yourself as to
    23	## your rights to use the software. Also, please note that software in
    24	## multiverse WILL NOT receive any review or updates from the Ubuntu
    25	## security team.
    26	deb http://fr.archive.ubuntu.com/ubuntu/ focal multiverse
    27	# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal multiverse
    28	deb http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
    29	# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-updates multiverse
    30	
    31	## N.B. software from this repository may not have been tested as
    32	## extensively as that contained in the main release, although it includes
    33	## newer versions of some applications which may provide useful features.
    34	## Also, please note that software in backports WILL NOT receive any review
    35	## or updates from the Ubuntu security team.
    36	deb http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
    37	# deb-src http://fr.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
    38	
    39	deb http://security.ubuntu.com/ubuntu focal-security main restricted
    40	# deb-src http://security.ubuntu.com/ubuntu focal-security main restricted
    41	deb http://security.ubuntu.com/ubuntu focal-security universe
    42	# deb-src http://security.ubuntu.com/ubuntu focal-security universe
    43	deb http://security.ubuntu.com/ubuntu focal-security multiverse
    44	# deb-src http://security.ubuntu.com/ubuntu focal-security multiverse
tictoc@tictoc-Inspiron-1545:~$ 

Ubuntu 22.04 LTS

Hors ligne

#23 Le 03/04/2022, à 12:20

xubu1957

Re : [Résolu]Problème pour régénérer le sources.list

Donne le retour de :

sudo apt update

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne

#24 Le 03/04/2022, à 12:24

imost

Re : [Résolu]Problème pour régénérer le sources.list

tictoc@tictoc-Inspiron-1545:~$ sudo apt update
[sudo] Mot de passe de tictoc : 
Atteint :1 http://ppa.launchpad.net/libreoffice/ppa/ubuntu focal InRelease                                                                           
Atteint :2 http://fr.archive.ubuntu.com/ubuntu focal InRelease                                                                                       
Atteint :3 http://fr.archive.ubuntu.com/ubuntu focal-updates InRelease                
Atteint :4 http://security.ubuntu.com/ubuntu focal-security InRelease                 
Atteint :5 http://fr.archive.ubuntu.com/ubuntu focal-backports InRelease
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Tous les paquets sont à jour.
tictoc@tictoc-Inspiron-1545:~$ 

Ubuntu 22.04 LTS

Hors ligne

#25 Le 03/04/2022, à 12:30

xubu1957

Re : [Résolu]Problème pour régénérer le sources.list

Montre aussi d'éventuels paquets cassés :

dpkg -l | grep -v ^ii

Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci.                   Membre de Linux-Azur

Hors ligne