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.

#26 Le 07/04/2023, à 14:05

the_chi

Re : [Résolu] explorateur Fichiers (Nautilus ?)

OK. Si je fais la modif dans la ligne de commande et que je relance, ça me donne :

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

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

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

deb http://security.ubuntu.com/ubuntu kinetic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu kinetic-security main restricted
deb http://security.ubuntu.com/ubuntu kinetic-security universe
# deb-src http://security.ubuntu.com/ubuntu kinetic-security universe
deb http://security.ubuntu.com/ubuntu kinetic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu kinetic-security multiverse

Hors ligne

#27 Le 07/04/2023, à 15:03

nany

Re : [Résolu] explorateur Fichiers (Nautilus ?)

ylag a écrit :

@nany devrait repasser pour le confirmer.

Oui, il y a bien eu une erreur dans la commande que je ne sais expliquer pour le moment.


Bref, donne le retour de :

apt policy ?upgradable

En ligne

#28 Le 07/04/2023, à 15:15

the_chi

Re : [Résolu] explorateur Fichiers (Nautilus ?)

et hop !

apt policy ?upgradable
libgdm1:
  Installé : 43.0-1ubuntu1
  Candidat : 43.0-1ubuntu1.22.10.1
 Table de version :
     43.0-1ubuntu1.22.10.1 500 (phased 20%)
        500 http://fr.archive.ubuntu.com/ubuntu kinetic-updates/main amd64 Packages
 *** 43.0-1ubuntu1 500
        500 http://fr.archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
        100 /var/lib/dpkg/status
liblouis20:
  Installé : 3.22.0-2
  Candidat : 3.22.0-2ubuntu0.1
 Table de version :
     3.22.0-2ubuntu0.1 500
        500 http://fr.archive.ubuntu.com/ubuntu kinetic-updates/main amd64 Packages
 *** 3.22.0-2 500
        500 http://fr.archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
        100 /var/lib/dpkg/status
gdm3:
  Installé : 43.0-1ubuntu1
  Candidat : 43.0-1ubuntu1.22.10.1
 Table de version :
     43.0-1ubuntu1.22.10.1 500 (phased 20%)
        500 http://fr.archive.ubuntu.com/ubuntu kinetic-updates/main amd64 Packages
 *** 43.0-1ubuntu1 500
        500 http://fr.archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
        100 /var/lib/dpkg/status
libnautilus-extension4:
  Installé : 1:43.0-1ubuntu2.1
  Candidat : 1:43.2-0ubuntu1
 Table de version :
     1:43.2-0ubuntu1 500 (phased 0%)
        500 http://fr.archive.ubuntu.com/ubuntu kinetic-updates/main amd64 Packages
 *** 1:43.0-1ubuntu2.1 500
        500 http://security.ubuntu.com/ubuntu kinetic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1:43.0-1ubuntu1 500
        500 http://fr.archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
gir1.2-gdm-1.0:
  Installé : 43.0-1ubuntu1
  Candidat : 43.0-1ubuntu1.22.10.1
 Table de version :
     43.0-1ubuntu1.22.10.1 500 (phased 20%)
        500 http://fr.archive.ubuntu.com/ubuntu kinetic-updates/main amd64 Packages
 *** 43.0-1ubuntu1 500
        500 http://fr.archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
        100 /var/lib/dpkg/status
nautilus:
  Installé : 1:43.0-1ubuntu2.1
  Candidat : 1:43.2-0ubuntu1
 Table de version :
     1:43.2-0ubuntu1 500 (phased 0%)
        500 http://fr.archive.ubuntu.com/ubuntu kinetic-updates/main amd64 Packages
 *** 1:43.0-1ubuntu2.1 500
        500 http://security.ubuntu.com/ubuntu kinetic-security/main amd64 Packages
        100 /var/lib/dpkg/status
     1:43.0-1ubuntu1 500
        500 http://fr.archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
nautilus-data:
  Installé : 1:43.0-1ubuntu2.1
  Candidat : 1:43.2-0ubuntu1
 Table de version :
     1:43.2-0ubuntu1 500 (phased 0%)
        500 http://fr.archive.ubuntu.com/ubuntu kinetic-updates/main amd64 Packages
        500 http://fr.archive.ubuntu.com/ubuntu kinetic-updates/main i386 Packages
 *** 1:43.0-1ubuntu2.1 500
        500 http://security.ubuntu.com/ubuntu kinetic-security/main amd64 Packages
        500 http://security.ubuntu.com/ubuntu kinetic-security/main i386 Packages
        100 /var/lib/dpkg/status
     1:43.0-1ubuntu1 500
        500 http://fr.archive.ubuntu.com/ubuntu kinetic/main amd64 Packages
        500 http://fr.archive.ubuntu.com/ubuntu kinetic/main i386 Packages

Hors ligne

#29 Le 07/04/2023, à 15:25

nany

Re : [Résolu] explorateur Fichiers (Nautilus ?)

Bon, nautilus est revenu dans les mises à jour progressives mais je n’ai pas compris pourquoi il avait disparu.


Pour le sources.list donne le retour de :

cat /etc/apt/sources.list

Dernière modification par nany (Le 07/04/2023, à 15:25)

En ligne

#30 Le 07/04/2023, à 15:28

the_chi

Re : [Résolu] explorateur Fichiers (Nautilus ?)

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

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

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

deb http://security.ubuntu.com/ubuntu kinetic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu kinetic-security main restricted
deb http://security.ubuntu.com/ubuntu kinetic-security universe
# deb-src http://security.ubuntu.com/ubuntu kinetic-security universe
deb http://security.ubuntu.com/ubuntu kinetic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu kinetic-security multiverse

Hors ligne

#31 Le 07/04/2023, à 15:36

nany

Re : [Résolu] explorateur Fichiers (Nautilus ?)

Donne le retour de :

sudo sed -i '1,5d' /etc/apt/sources.list && cat /etc/apt/sources.list

 


Puis redonne le retour de :

wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl | sed -e "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)" -e '$a\\n# This system was installed using small removable media\n# (e.g. netinst, live or single CD). The matching \"deb cdrom\"\n# entries were disabled at the end of the installation process.\n# For information about how to configure apt package sources,\n# see the sources.list(5) manual.'

En ligne

#32 Le 07/04/2023, à 15:41

the_chi

Re : [Résolu] explorateur Fichiers (Nautilus ?)

sudo sed -i '1,5d' /etc/apt/sources.list && cat /etc/apt/sources.list donne :

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

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

deb http://security.ubuntu.com/ubuntu kinetic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu kinetic-security main restricted
deb http://security.ubuntu.com/ubuntu kinetic-security universe
# deb-src http://security.ubuntu.com/ubuntu kinetic-security universe
deb http://security.ubuntu.com/ubuntu kinetic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu kinetic-security multiverse

et wget -qO- https://raw.githubusercontent.com/canon … buntu.tmpl | sed -e "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)" -e '$a\\n# This system was installed using small removable media\n# (e.g. netinst, live or single CD). The matching \"deb cdrom\"\n# entries were disabled at the end of the installation process.\n# For information about how to configure apt package sources,\n# see the sources.list(5) manual.'
:

$a\n# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

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

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

deb http://security.ubuntu.com/ubuntu kinetic-security main restricted
# deb-src http://security.ubuntu.com/ubuntu kinetic-security main restricted
deb http://security.ubuntu.com/ubuntu kinetic-security universe
# deb-src http://security.ubuntu.com/ubuntu kinetic-security universe
deb http://security.ubuntu.com/ubuntu kinetic-security multiverse
# deb-src http://security.ubuntu.com/ubuntu kinetic-security multiverse

note le

$a\n

est revenu

Hors ligne

#33 Le 07/04/2023, à 15:48

nany

Re : [Résolu] explorateur Fichiers (Nautilus ?)

Bon, ça ne veut pas fonctionner chez toi et je ne sais pas pourquoi. ¯\_(ツ)_/¯
Tant pis, restons en là.

Tu peux marquer le sujet comme résolu.

En ligne

#34 Le 07/04/2023, à 15:50

the_chi

Re : [Résolu] explorateur Fichiers (Nautilus ?)

OK. et encore merci à tous les deux.

Hors ligne

#35 Le 07/04/2023, à 16:01

ylag

Re : [Résolu] explorateur Fichiers (Nautilus ?)

@nany :

Bonjour,

Voir le message #22

Au #22, the_chi a écrit :

-e '$a\\n# This system was installed using small removable media\n# (e.g. netinst, live or single CD).
... au début de la 4ème ligne.

A+

Hors ligne

#36 Le 07/04/2023, à 16:15

nany

Re : [Résolu] explorateur Fichiers (Nautilus ?)

Oui ben chez moi ça donne ça :

~$ wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl | sed -e "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)" -e '$a\\n# This system was installed using small removable media\n# (e.g. netinst, live or single CD). The matching \"deb cdrom\"\n# entries were disabled at the end of the installation process.\n# For information about how to configure apt package sources,\n# see the sources.list(5) manual.'
# deb-cdrom:[Ubuntu 22.04 LTS _Jammy Jellyfish_ - Release amd64 (20220419)]/ jammy 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/ jammy main restricted
# deb-src http://fr.archive.ubuntu.com/ubuntu/ jammy main restricted

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

deb http://security.ubuntu.com/ubuntu jammy-security main restricted
# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted
deb http://security.ubuntu.com/ubuntu jammy-security universe
# deb-src http://security.ubuntu.com/ubuntu jammy-security universe
deb http://security.ubuntu.com/ubuntu jammy-security multiverse
# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.

~$

Et je ne comprends pas pourquoi c’est différent chez the_chi.

En ligne

#37 Le 07/04/2023, à 16:28

ylag

Re : [Résolu] explorateur Fichiers (Nautilus ?)

@nany :

Peut-être la façon dont @the_chi s'y est pris pour recopier la ligne de commande dans son terminal ?

Je viens de tester la commande du message #19 sur une 18.04, et ça marche normalement pour moi.
J'ai fait un triple-clic de gauche sur la ligne de commande, puis copier/coller dans mon terminal.

A+

Dernière modification par ylag (Le 07/04/2023, à 16:36)

Hors ligne

#38 Le 11/04/2023, à 08:39

the_chi

Re : [Résolu] explorateur Fichiers (Nautilus ?)

Bonjour,
voici la copie de la commande du message #19. Le

$a\\n

y est déjà.
Copie-Commande.png

Dernière modification par the_chi (Le 11/04/2023, à 08:41)

Hors ligne

#39 Le 11/04/2023, à 10:32

ylag

Re : [Résolu] explorateur Fichiers (Nautilus ?)

Bonjour,

the_chi a écrit :
$a\\n

y est déjà.

Normal : En fait, ces caractères font bien partie de la commande.
Ce qui est anormal est de les retrouver au début de la première ligne du fichier créé chez-toi.

Je viens encore de tester avec succès la commande du message #19, cette fois sur ma 20.04 :

yvan@yvan-maison:~$ wget -qO- https://raw.githubusercontent.com/canonical/cloud-init/master/templates/sources.list.ubuntu.tmpl | sed -e "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)" -e '$a\\n# This system was installed using small removable media\n# (e.g. netinst, live or single CD). The matching \"deb cdrom\"\n# entries were disabled at the end of the installation process.\n# For information about how to configure apt package sources,\n# see the sources.list(5) manual.' | sudo tee /etc/apt/sources.list
# deb-cdrom:[Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)]/ 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

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
yvan@yvan-maison:~$

Pour vérifier le contenu du fichier créé :

yvan@yvan-maison:~$ cat /etc/apt/sources.list
# deb-cdrom:[Ubuntu 20.04.1 LTS _Focal Fossa_ - Release amd64 (20200731)]/ 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

# This system was installed using small removable media
# (e.g. netinst, live or single CD). The matching "deb cdrom"
# entries were disabled at the end of the installation process.
# For information about how to configure apt package sources,
# see the sources.list(5) manual.
yvan@yvan-maison:~$

A+

Dernière modification par ylag (Le 11/04/2023, à 10:34)

Hors ligne