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 17/01/2017, à 03:28

zeph22

[Résolu]Anciens noyaux UBUNTU à virer

Bonjour à tous ! smile
Je viens vous annoncer une catastrophe !
Mon repertoire /usr/src/ a disparu de l'arborescence !
MAIS je ne suis pas planté! Ubuntu a redémarré normalement. (??)

Et bien sûr, ça ne s'est pas fait tout seul.
En voici la cause :

Fort de mes expériences passées, concernant l'élimination d'anciens noyaux,
(J'avais noté plein de formules dans un pense-bête)
(voir ici
https://forum.ubuntu-fr.org/viewtopic.p … #p19136961
ou là
https://forum.ubuntu-fr.org/viewtopic.php?id=1619601)
je décide de virer les anciens noyaux appartenant à la version 14-04 (en 3.13.0...)

La seule différence, c'est qu'en 2015, il y avait des fichiers
plus ou moins endommagés ou partiels, et que là, ils sont ou étaient intacts.

Depuis septembre, je tourne avec la version 16-04 (en 4.4.0...) qui,
comme la dernière fois, n'a pas éliminé les anciennes versions lors de l'installation.

De ce fait, une commande comme

sudo apt-get remove --purge linux-headers-3.13.0-xx

reste infructueuse, comme il y a deux ans avec les versions précédentes.
Cette commande ne "voit" que la version courante en 4.4.0-....

De mémoire et sauf erreur,
je me lance donc, et après avoir essayé sans succès la commande ci-dessus,
je fais un

sudo apt-get autoremove

ça me vire tout SAUF les anciens fichiers et les deux derniers en date.
Ouf! près d'un Go a été libéré!



Je fais un

zeph@zeph-HP:~$ dpkg -l | awk '/ +linux/ && /headers|generic/{ if(match($2,/([0-9]\.)+/)) {print $2} }'|sort -t- -rV -k3,4|paste -d" " - - -

Réponse:

linux-image-extra-4.4.0-59-generic 
linux-image-extra-4.4.0-57-generic 
linux-image-extra-4.4.0-53-generic
linux-image-extra-4.4.0-51-generic 
linux-image-extra-4.4.0-47-generic 
linux-image-extra-4.4.0-45-generic
linux-image-extra-4.4.0-43-generic 
linux-image-extra-4.4.0-38-generic 
linux-image-extra-4.4.0-21-generic

linux-image-4.4.0-59-generic 
linux-headers-4.4.0-59-generic 
linux-headers-4.4.0-59
linux-image-4.4.0-57-generic 
linux-headers-4.4.0-57-generic 
linux-headers-4.4.0-57

linux-image-4.4.0-53-generic 
linux-image-4.4.0-51-generic 
linux-image-4.4.0-47-generic
linux-image-4.4.0-45-generic 
linux-image-4.4.0-43-generic 
linux-image-4.4.0-38-generic
linux-image-4.4.0-21-generic

Tous les fichiers headers et image 4.4.0...  étaient là!
Mais pas de trace des 3.13.0... pourtant présents dans src.

Ça, c'était hier, avant la cata.
Je regrette de n'avoir pas tout enregistré sur fichier txt.
====================================================
Puis je fais un

sudo rm -r /usr/src/linux-headers-3.13.0-88

.
Bizarrement ça ne tient pas compte du fichier désigné!
(serait une question d'espace entre /src/ et linux?
ceci pourrait-il expliquer cela?)

CATA: PLUS DE REPERTOIRE "src" du tout!

mais:

zeph@zeph-HP:~$ uname -a
Linux zeph-HP 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Je tourne bien sur la dernière version d'UBUNTU

Puis j'ai fait les différentes commandes ci-après:

zeph@zeph-HP:~$ df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
udev               1,9G       0  1,9G   0% /dev
tmpfs              376M    6,3M  369M   2% /run
/dev/sda7           29G     19G  8,6G  69% /   <=== 71% auparavant. C'est reste énorme!
tmpfs              1,9G    172K  1,9G   1% /dev/shm
tmpfs              5,0M    4,0K  5,0M   1% /run/lock
tmpfs              1,9G       0  1,9G   0% /sys/fs/cgroup
tmpfs              376M     60K  376M   1% /run/user/1000
zeph@zeph-HP:~$ df -i
Sys. de fichiers  Inœuds IUtil.  ILibre IUti% Monté sur
udev              475130    577  474553    1% /dev
tmpfs             480162    840  479322    1% /run
/dev/sda7        1884160 252650 1631510   14% /   <=== 50% environ auparavant
tmpfs             480162      6  480156    1% /dev/shm
tmpfs             480162      5  480157    1% /run/lock
tmpfs             480162     16  480146    1% /sys/fs/cgroup
tmpfs             480162     30  480132    1% /run/user/1000

On peut noter qu'il y a une forte disparité des valeurs df -h et le df -i de sda7:.

zeph@zeph-HP:~$ ls -l /usr/src
ls: impossible d'accéder à '/usr/src': Aucun fichier ou dossier de ce type

Plus de "src"!
La preuve :

zeph@zeph-HP:~$ ls -l /usr/
total 136
drwxr-xr-x   2 root root 65536 janv. 15 15:11 bin
drwxr-xr-x   2 root root  4096 nov.   2 02:01 games
drwxr-xr-x  36 root root 20480 déc.   9 18:16 include
drwxr-xr-x 158 root root 12288 janv. 15 04:03 lib
drwxr-xr-x  10 root root  4096 avril 21  2016 local
drwxr-xr-x   3 root root  4096 avril 21  2016 locale
drwxr-xr-x   2 root root 12288 janv. 15 15:11 sbin
drwxr-xr-x 327 root root 12288 janv. 15 04:03 share
zeph@zeph-HP:~$ sudo apt-get remove --purge linux-image-3.13.0-88 --simulate
[sudo] Mot de passe de zeph : 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet linux-image-3.13.0-88
E: Couldn't find any package by glob 'linux-image-3.13.0-88
E: Impossible de trouver de paquet correspondant à l'expression rationnelle « linux-image-3.13.0-88 »
zeph@zeph-HP:~$ sudo apt-get remove --purge linux-image-3.13.0-91 --simulate
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet linux-image-3.13.0-91
E: Couldn't find any package by glob 'linux-image-3.13.0-91'
E: Impossible de trouver de paquet correspondant à l'expression rationnelle « linux-image-3.13.0-91 »
zeph@zeph-HP:~$ sudo apt-get remove --purge linux-hea[TAB][TAB] --simulate
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet linux-hea
zeph@zeph-HP:~$ sudo apt-get remove --purge linux-ima[TAB][TAB] --simulate
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet linux-ima
zeph@zeph-HP:~$ sudo apt-get remove --purge linux-image-3.13.0-88 --simulate
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet linux-image-3.13.0-88
E: Couldn't find any package by glob 'linux-image-3.13.0-88'
E: Impossible de trouver de paquet correspondant à l'expression rationnelle « linux-image-3.13.0-88 »
zeph@zeph-HP:~$ sudo apt-get remove --purge linux-image-3.13.0-91 --simulate
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet linux-image-3.13.0-91
E: Couldn't find any package by glob 'linux-image-3.13.0-91'
E: Impossible de trouver de paquet correspondant à l'expression rationnelle « linux-image-3.13.0-91 »

On voit que ces commandes ne traitent que ce qui est en 4.4.0-...

Et pourtant :

zeph@zeph-HP:~$ sudo apt-get install linux-generic linux-image-generic linux-headers-generic
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
linux-generic is already the newest version (4.4.0.59.62).      <====
linux-headers-generic is already the newest version (4.4.0.59.62).
linux-headers-generic passé en « installé manuellement ».
linux-image-generic is already the newest version (4.4.0.59.62). <====
linux-image-generic passé en « installé manuellement ».
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.

C'est déjà installé mais pas de repertoire "src" recréé.

Enfin,

zeph@zeph-HP:~$ dpkg -l | awk '/ +linux/ && /headers|generic/{ if(match($2,/([0-9]\.)+/)) {print $2} }'|sort -t- -rV -k3,4|paste -d" " - - -
linux-image-extra-4.4.0-59-generic 
linux-image-extra-4.4.0-57-generic 
linux-image-extra-4.4.0-53-generic
linux-image-extra-4.4.0-51-generic 
linux-image-extra-4.4.0-47-generic 
linux-image-extra-4.4.0-45-generic
linux-image-extra-4.4.0-43-generic 
linux-image-extra-4.4.0-38-generic 
linux-image-extra-4.4.0-21-generic
linux-image-4.4.0-59-generic 
linux-headers-4.4.0-59-generic 
linux-headers-4.4.0-59
linux-image-4.4.0-57-generic 
linux-headers-4.4.0-57-generic 
linux-headers-4.4.0-57
linux-image-4.4.0-53-generic 
linux-image-4.4.0-51-generic 
linux-image-4.4.0-47-generic
linux-image-4.4.0-45-generic 
linux-image-4.4.0-43-generic 
linux-image-4.4.0-38-generic
linux-image-4.4.0-21-generic  
zeph@zeph-HP:~$ 

Tout le monde est là quelque part!

=================================================================
REDÉMARRAGE :
Redémarrage normal, ÇA S'EST RELANCÉ COMME S'IL NE S'ÉTAIT RIEN PASSÉ !

zeph@zeph-HP:~$ uname -a
Linux zeph-HP 4.4.0-59-generic #80-Ubuntu SMP Fri Jan 6 17:47:47 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Je tourne bien sur la dernière version !
J'ajoute que GRUB est intact et laisse voir tous les fichiers.
Je n'ai pas fait de update ni de upgrade.

Devrais-je procéder à une nouvelle installation par sécurité? J'ai le DVD.
Faut-il recréer simplement le repertoire (vide) src? et comment?
Son absence risque de planter la prochaine mise à jour.

Voilà. À chaque mise à niveau ses problèmes de virage des anciens fichiers!

Pardon pour n'avoir pas su opérer normalement malgré mon expérience passée.
Et merci d'avance de vos réponses.
Je rappelle qu'il n'y a pas urgence et que je ne suis pas planté.

Zeph

Dernière modification par zeph22 (Le 03/02/2017, à 18:00)


Ubuntero depuis le 6/11/2010. fibré le 17/11/2020  NRO 93073TRE   Freebox mini 4K  (wifi n)
ordinateur HP notebook 17" ca0000nf AMD A9-9425   SSD SATA 1To   ram 8Go  Table gpt   EFI
Dual boot Win10/Ubuntu 22.04.3.  FTTH / ethernet:  down 340Mb/s   up 330Mb/s   ping 6ms

Hors ligne

#2 Le 17/01/2017, à 04:37

moko138

Re : [Résolu]Anciens noyaux UBUNTU à virer

Je pense que

sudo apt-get install --reinstall linux-generic  linux-image-generic  linux-headers-generic  linux-headers-4.4.0-59  linux-headers-4.4.0-59-generic  linux-image-4.4.0-59-generic  linux-image-extra-4.4.0-59-generic 

devrait y mettre bon ordre.
Donne son retour
puis celui de

dpkg -l | grep -Ei "linux-(g|h|i|lo|si|t)"
df -Th | grep -Ev "devpts|none|proc|sys|tmpfs|udev"; echo; df -Ti | grep -Ev "devpts|none|proc|sys|tmpfs|udev"

et bien sûr de

ls -l /usr/src

  - -

Si /usr/src est de nouveau peuplé, il sera alors temps de faire le ménage...
correctement.  big_smile

Dernière modification par moko138 (Le 17/01/2017, à 04:38)


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#3 Le 17/01/2017, à 10:47

cqfd93

Re : [Résolu]Anciens noyaux UBUNTU à virer

Bonjour,

+1 pour un install --reinstall mais peut-être faut-il recréer un répertoire src ?

sudo mkdir /usr/src

cqfd93

Hors ligne

#4 Le 17/01/2017, à 13:12

zeph22

Re : [Résolu]Anciens noyaux UBUNTU à virer

Bonjour et merci de vos réponses. smile

@ cqfd93, c'est ok. src (vide) a été recréé.

@ moko138

zeph@zeph-HP:~$ sudo apt-get install --reinstall linux-generic  linux-image-generic  linux-headers-generic  linux-headers-4.4.0-59  linux-headers-4.4.0-59-generic  linux-image-4.4.0-59-generic  linux-image-extra-4.4.0-59-generic 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 7 réinstallés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 68,4 Mo dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Réception de:1 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-generic amd64 4.4.0.59.62 [1 790 B]
Réception de:2 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-59 all 4.4.0-59.80 [9 971 kB]
Réception de:3 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-4.4.0-59-generic amd64 4.4.0-59.80 [779 kB]
Réception de:4 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-headers-generic amd64 4.4.0.59.62 [2 228 B]
Réception de:5 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-4.4.0-59-generic amd64 4.4.0-59.80 [21,3 MB]
Réception de:6 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-extra-4.4.0-59-generic amd64 4.4.0-59.80 [36,3 MB]
Réception de:7 http://fr.archive.ubuntu.com/ubuntu xenial-updates/main amd64 linux-image-generic amd64 4.4.0.59.62 [2 254 B]
68,4 Mo réceptionnés en 21s (3 209 ko/s)                                       
(Lecture de la base de données... 253465 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../linux-generic_4.4.0.59.62_amd64.deb ...
Dépaquetage de linux-generic (4.4.0.59.62) sur (4.4.0.59.62) ...
Préparation du dépaquetage de .../linux-headers-4.4.0-59_4.4.0-59.80_all.deb ...
Dépaquetage de linux-headers-4.4.0-59 (4.4.0-59.80) sur (4.4.0-59.80) ...
Préparation du dépaquetage de .../linux-headers-4.4.0-59-generic_4.4.0-59.80_amd64.deb ...
Dépaquetage de linux-headers-4.4.0-59-generic (4.4.0-59.80) sur (4.4.0-59.80) ...
Préparation du dépaquetage de .../linux-headers-generic_4.4.0.59.62_amd64.deb ...
Dépaquetage de linux-headers-generic (4.4.0.59.62) sur (4.4.0.59.62) ...
Préparation du dépaquetage de .../linux-image-4.4.0-59-generic_4.4.0-59.80_amd64.deb ...
Examining /etc/kernel/preinst.d/
run-parts: executing /etc/kernel/preinst.d/intel-microcode 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
Done.
Dépaquetage de linux-image-4.4.0-59-generic (4.4.0-59.80) sur (4.4.0-59.80) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
Préparation du dépaquetage de .../linux-image-extra-4.4.0-59-generic_4.4.0-59.80_amd64.deb ...
Dépaquetage de linux-image-extra-4.4.0-59-generic (4.4.0-59.80) sur (4.4.0-59.80) ...
Préparation du dépaquetage de .../linux-image-generic_4.4.0.59.62_amd64.deb ...
Dépaquetage de linux-image-generic (4.4.0.59.62) sur (4.4.0.59.62) ...
Paramétrage de linux-image-4.4.0-59-generic (4.4.0-59.80) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Not updating initrd symbolic links since we are being updated/reinstalled 
(4.4.0-59.80 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled 
(4.4.0-59.80 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
Error! Could not locate dkms.conf file.
File:  does not exist.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/vmlinuz-4.4.0-59-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-59-generic
Image Linux trouvée : /boot/vmlinuz-4.4.0-57-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-57-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-95-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-95-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-93-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-93-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-92-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-92-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-91-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-91-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-88-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-88-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Windows 7 (loader) trouvé sur /dev/sda1
Windows Recovery Environment (loader) trouvé sur /dev/sda2
Windows Recovery Environment (loader) trouvé sur /dev/sda3
fait
Paramétrage de linux-image-extra-4.4.0-59-generic (4.4.0-59.80) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
Error! Could not locate dkms.conf file.
File:  does not exist.
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
update-initramfs: Generating /boot/initrd.img-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/unattended-upgrades 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
Création du fichier de configuration GRUB…
Image Linux trouvée : /boot/vmlinuz-4.4.0-59-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-59-generic
Image Linux trouvée : /boot/vmlinuz-4.4.0-57-generic
Image mémoire initiale trouvée : /boot/initrd.img-4.4.0-57-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-95-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-95-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-93-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-93-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-92-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-92-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-91-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-91-generic
Image Linux trouvée : /boot/vmlinuz-3.13.0-88-generic
Image mémoire initiale trouvée : /boot/initrd.img-3.13.0-88-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Windows 7 (loader) trouvé sur /dev/sda1
Windows Recovery Environment (loader) trouvé sur /dev/sda2
Windows Recovery Environment (loader) trouvé sur /dev/sda3
fait
Paramétrage de linux-image-generic (4.4.0.59.62) ...
Paramétrage de linux-headers-4.4.0-59 (4.4.0-59.80) ...
Paramétrage de linux-headers-4.4.0-59-generic (4.4.0-59.80) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.4.0-59-generic /boot/vmlinuz-4.4.0-59-generic
[b]Error! Could not locate dkms.conf file.
File:  does not exist.[/b]
Paramétrage de linux-headers-generic (4.4.0.59.62) ...
Paramétrage de linux-generic (4.4.0.59.62) ...
zeph@zeph-HP:~$

Deux répertoires headers recréés dans src

zeph@zeph-HP:~$ dpkg -l | grep -Ei "linux-(g|h|i|lo|si|t)"
ii  linux-generic                                 4.4.0.59.62                                   amd64        Complete Generic Linux kernel and headers
ii  linux-headers-4.4.0-57                        4.4.0-57.78                                   all          Header files related to Linux kernel version 4.4.0
ii  linux-headers-4.4.0-57-generic                4.4.0-57.78                                   amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii  linux-headers-4.4.0-59                        4.4.0-59.80                                   all          Header files related to Linux kernel version 4.4.0
ii  linux-headers-4.4.0-59-generic                4.4.0-59.80                                   amd64        Linux kernel headers for version 4.4.0 on 64 bit x86 SMP
ii  linux-headers-generic                         4.4.0.59.62                                   amd64        Generic Linux kernel headers
rc  linux-image-4.4.0-21-generic                  4.4.0-21.37                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-38-generic                  4.4.0-38.57                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-43-generic                  4.4.0-43.63                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-45-generic                  4.4.0-45.66                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-47-generic                  4.4.0-47.68                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-51-generic                  4.4.0-51.72                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-4.4.0-53-generic                  4.4.0-53.74                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-57-generic                  4.4.0-57.78                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-4.4.0-59-generic                  4.4.0-59.80                                   amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-21-generic            4.4.0-21.37                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-38-generic            4.4.0-38.57                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-43-generic            4.4.0-43.63                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-45-generic            4.4.0-45.66                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-47-generic            4.4.0-47.68                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-51-generic            4.4.0-51.72                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
rc  linux-image-extra-4.4.0-53-generic            4.4.0-53.74                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-57-generic            4.4.0-57.78                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-extra-4.4.0-59-generic            4.4.0-59.80                                   amd64        Linux kernel extra modules for version 4.4.0 on 64 bit x86 SMP
ii  linux-image-generic                           4.4.0.59.62                                   amd64        Generic Linux kernel image
zeph@zeph-HP:~$

ok mais pas de trace des fichiers 3.13.0!

zeph@zeph-HP:~$ df -Th | grep -Ev "devpts|none|proc|sys|tmpfs|udev"; echo; df -Ti | grep -Ev "devpts|none|proc|sys|tmpfs|udev"
Sys. de fichiers Type     Taille Utilisé Dispo Uti% Monté sur
/dev/sda7        ext4        29G     19G  8,4G  69% /
/dev/sda2        fuseblk    233G     96G  138G  41% /media/zeph/16D08CB8D08CA01B

Sys. de fichiers Type        Inœuds IUtil.    ILibre IUti% Monté sur
/dev/sda7        ext4       1884160 280324   1603836   15% /
/dev/sda2        fuseblk  144766072 301219 144464853    1% /media/zeph/16D08CB8D08CA01B
zeph@zeph-HP:~$ 

Toujours une forte disparité sur sda7

zeph@zeph-HP:~$ ls -l /usr/src
total 8
drwxr-xr-x 27 root root 4096 janv. 17 11:31 linux-headers-4.4.0-59
drwxr-xr-x  7 root root 4096 janv. 17 11:31 linux-headers-4.4.0-59-generic
zeph@zeph-HP:~$

OK  smile Les 2 répertoires de la dernière version, la plus importante, sont recréés.


Ubuntero depuis le 6/11/2010. fibré le 17/11/2020  NRO 93073TRE   Freebox mini 4K  (wifi n)
ordinateur HP notebook 17" ca0000nf AMD A9-9425   SSD SATA 1To   ram 8Go  Table gpt   EFI
Dual boot Win10/Ubuntu 22.04.3.  FTTH / ethernet:  down 340Mb/s   up 330Mb/s   ping 6ms

Hors ligne

#5 Le 17/01/2017, à 13:30

zeph22

Re : [Résolu]Anciens noyaux UBUNTU à virer

Je viens de redémarrer. RAS, parfaitement normal. smile


Ubuntero depuis le 6/11/2010. fibré le 17/11/2020  NRO 93073TRE   Freebox mini 4K  (wifi n)
ordinateur HP notebook 17" ca0000nf AMD A9-9425   SSD SATA 1To   ram 8Go  Table gpt   EFI
Dual boot Win10/Ubuntu 22.04.3.  FTTH / ethernet:  down 340Mb/s   up 330Mb/s   ping 6ms

Hors ligne

#6 Le 17/01/2017, à 14:50

moko138

Re : [Résolu]Anciens noyaux UBUNTU à virer

cqfd93 a écrit :

+1 pour un install --reinstall mais peut-être faut-il recréer un répertoire src ?

sudo mkdir /usr/src

Sage précaution ! Merci cqfd93 !
  - -

moko138 a écrit :

Si /usr/src est de nouveau peuplé, il sera alors temps de faire le ménage...
correctement.  big_smile

Donne :

sudo apt-get clean; sudo apt-get autoremove
ls -l /boot
df -Th | grep -Ev "devpts|none|proc|sys|tmpfs|udev"; echo; df -Ti | grep -Ev "devpts|none|proc|sys|tmpfs|udev"

%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#7 Le 17/01/2017, à 15:14

zeph22

Re : [Résolu]Anciens noyaux UBUNTU à virer

Voici les réponses :

zeph@zeph-HP:~$ sudo apt-get clean; sudo apt-get autoremove
[sudo] Mot de passe de zeph : 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
W: Target Packages (partner/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:42 and /etc/apt/sources.list:85
W: Target Packages (partner/binary-i386/Packages) is configured multiple times in /etc/apt/sources.list:42 and /etc/apt/sources.list:85
W: Target Packages (partner/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:42 and /etc/apt/sources.list:85
W: Target Translations (partner/i18n/Translation-fr_FR) is configured multiple times in /etc/apt/sources.list:42 and /etc/apt/sources.list:85
W: Target Translations (partner/i18n/Translation-fr) is configured multiple times in /etc/apt/sources.list:42 and /etc/apt/sources.list:85
W: Target Translations (partner/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:42 and /etc/apt/sources.list:85
W: Target DEP-11 (partner/dep11/Components-amd64.yml) is configured multiple times in /etc/apt/sources.list:42 and /etc/apt/sources.list:85
W: Target DEP-11-icons (partner/dep11/icons-64x64.tar) is configured multiple times in /etc/apt/sources.list:42 and /etc/apt/sources.list:85
zeph@zeph-HP:~$
zeph@zeph-HP:~$ sudo apt-get autoremove
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
zeph@zeph-HP:~$
zeph@zeph-HP:~$ ls -l /boot
total 243956
-rw-r--r-- 1 root root  1166060 juin   9  2016 abi-3.13.0-88-generic
-rw-r--r-- 1 root root  1166288 juin  24  2016 abi-3.13.0-91-generic
-rw-r--r-- 1 root root  1166336 juin  29  2016 abi-3.13.0-92-generic
-rw-r--r-- 1 root root  1166336 juil. 19 02:19 abi-3.13.0-93-generic
-rw-r--r-- 1 root root  1166336 août  12 20:45 abi-3.13.0-95-generic
-rw-r--r-- 1 root root  1243800 déc.  10 05:04 abi-4.4.0-57-generic
-rw-r--r-- 1 root root  1244118 janv.  7 01:44 abi-4.4.0-59-generic
-rw-r--r-- 1 root root   165929 juin   9  2016 config-3.13.0-88-generic
-rw-r--r-- 1 root root   165929 juin  24  2016 config-3.13.0-91-generic
-rw-r--r-- 1 root root   165966 juin  29  2016 config-3.13.0-92-generic
-rw-r--r-- 1 root root   165966 juil. 19 02:19 config-3.13.0-93-generic
-rw-r--r-- 1 root root   165966 août  12 20:45 config-3.13.0-95-generic
-rw-r--r-- 1 root root   189991 déc.  10 05:04 config-4.4.0-57-generic
-rw-r--r-- 1 root root   190047 janv.  7 01:44 config-4.4.0-59-generic
drwxr-xr-x 5 root root     4096 janv. 17 11:33 grub
-rw-r--r-- 1 root root 19236256 juin  10  2016 initrd.img-3.13.0-88-generic
-rw-r--r-- 1 root root 19236031 juin  28  2016 initrd.img-3.13.0-91-generic
-rw-r--r-- 1 root root 19236390 août   3 21:59 initrd.img-3.13.0-92-generic
-rw-r--r-- 1 root root 19236158 août  11 19:11 initrd.img-3.13.0-93-generic
-rw-r--r-- 1 root root 19235962 août  31 01:06 initrd.img-3.13.0-95-generic
-rw-r--r-- 1 root root 37719290 déc.  21 14:00 initrd.img-4.4.0-57-generic
-rw-r--r-- 1 root root 37720049 janv. 17 11:33 initrd.img-4.4.0-59-generic
-rw-r--r-- 1 root root   182704 janv. 28  2016 memtest86+.bin
-rw-r--r-- 1 root root   184380 janv. 28  2016 memtest86+.elf
-rw-r--r-- 1 root root   184840 janv. 28  2016 memtest86+_multiboot.bin
-rw------- 1 root root  3393683 juin   9  2016 System.map-3.13.0-88-generic
-rw------- 1 root root  3393728 juin  24  2016 System.map-3.13.0-91-generic
-rw------- 1 root root  3394259 juin  29  2016 System.map-3.13.0-92-generic
-rw------- 1 root root  3394259 juil. 19 02:19 System.map-3.13.0-93-generic
-rw------- 1 root root  3394259 août  12 20:45 System.map-3.13.0-95-generic
-rw------- 1 root root  3875329 déc.  10 05:04 System.map-4.4.0-57-generic
-rw------- 1 root root  3875594 janv.  7 01:44 System.map-4.4.0-59-generic
-rw------- 1 root root  5833888 juin   9  2016 vmlinuz-3.13.0-88-generic
-rw------- 1 root root  5834048 juin  24  2016 vmlinuz-3.13.0-91-generic
-rw------- 1 root root  5836336 juin  29  2016 vmlinuz-3.13.0-92-generic
-rw------- 1 root root  5835888 juil. 19 02:19 vmlinuz-3.13.0-93-generic
-rw------- 1 root root  5835312 août  12 20:45 vmlinuz-3.13.0-95-generic
-rw------- 1 root root  7067152 déc.  10 05:04 vmlinuz-4.4.0-57-generic
-rw------- 1 root root  7069136 janv.  7 01:44 vmlinuz-4.4.0-59-generic
zeph@zeph-HP:

Les fichiers 3.13.0 que je désire virer sont bien là.

zeph@zeph-HP:~$ df -Th | grep -Ev "devpts|none|proc|sys|tmpfs|udev"; echo; df -Ti | grep -Ev "devpts|none|proc|sys|tmpfs|udev"
Sys. de fichiers Type     Taille Utilisé Dispo Uti% Monté sur
/dev/sda7        ext4        29G     19G  8,5G  69% /
/dev/sda2        fuseblk    233G     96G  138G  41% /media/zeph/16D08CB8D08CA01B
/dev/sda1        fuseblk    199M     29M  171M  15% /media/zeph/SYSTEM

Sys. de fichiers Type        Inœuds IUtil.    ILibre IUti% Monté sur
/dev/sda7        ext4       1884160 280582   1603578   15% /
/dev/sda2        fuseblk  144766072 301219 144464853    1% /media/zeph/16D08CB8D08CA01B
/dev/sda1        fuseblk     239624     95    239529    1% /media/zeph/SYSTEM
zeph@zeph-HP:~$

Dernière modification par zeph22 (Le 17/01/2017, à 15:17)


Ubuntero depuis le 6/11/2010. fibré le 17/11/2020  NRO 93073TRE   Freebox mini 4K  (wifi n)
ordinateur HP notebook 17" ca0000nf AMD A9-9425   SSD SATA 1To   ram 8Go  Table gpt   EFI
Dual boot Win10/Ubuntu 22.04.3.  FTTH / ethernet:  down 340Mb/s   up 330Mb/s   ping 6ms

Hors ligne

#8 Le 17/01/2017, à 15:26

cqfd93

Re : [Résolu]Anciens noyaux UBUNTU à virer

Tu peux maintenant virer tous les 3.13 qui traînent encore dans /boot :

cd /boot
sudo rm -v *3.13*

Tu as un doublon dans ton sources.list :

cat /etc/apt/sources.list

pour voir ça.


cqfd93

Hors ligne

#9 Le 17/01/2017, à 17:01

zeph22

Re : [Résolu]Anciens noyaux UBUNTU à virer

Voici les réponses :

zeph@zeph-HP:~$ cd /boot
zeph@zeph-HP:/boot$ sudo rm -v *3.13.0*
[sudo] Mot de passe de zeph : 
'abi-3.13.0-88-generic' supprimé
'abi-3.13.0-91-generic' supprimé
'abi-3.13.0-92-generic' supprimé
'abi-3.13.0-93-generic' supprimé
'abi-3.13.0-95-generic' supprimé
'config-3.13.0-88-generic' supprimé
'config-3.13.0-91-generic' supprimé
'config-3.13.0-92-generic' supprimé
'config-3.13.0-93-generic' supprimé
'config-3.13.0-95-generic' supprimé
'initrd.img-3.13.0-88-generic' supprimé
'initrd.img-3.13.0-91-generic' supprimé
'initrd.img-3.13.0-92-generic' supprimé
'initrd.img-3.13.0-93-generic' supprimé
'initrd.img-3.13.0-95-generic' supprimé
'System.map-3.13.0-88-generic' supprimé
'System.map-3.13.0-91-generic' supprimé
'System.map-3.13.0-92-generic' supprimé
'System.map-3.13.0-93-generic' supprimé
'System.map-3.13.0-95-generic' supprimé
'vmlinuz-3.13.0-88-generic' supprimé
'vmlinuz-3.13.0-91-generic' supprimé
'vmlinuz-3.13.0-92-generic' supprimé
'vmlinuz-3.13.0-93-generic' supprimé
'vmlinuz-3.13.0-95-generic' supprimé
zeph@zeph-HP:/boot$

Il y a eu du nettoyage! smile
Vérification :

zeph@zeph-HP:/boot$ ls -l /boot
total 98416
-rw-r--r-- 1 root root  1243800 déc.  10 05:04 abi-4.4.0-57-generic
-rw-r--r-- 1 root root  1244118 janv.  7 01:44 abi-4.4.0-59-generic
-rw-r--r-- 1 root root   189991 déc.  10 05:04 config-4.4.0-57-generic
-rw-r--r-- 1 root root   190047 janv.  7 01:44 config-4.4.0-59-generic
drwxr-xr-x 5 root root     4096 janv. 17 11:33 grub
-rw-r--r-- 1 root root 37719290 déc.  21 14:00 initrd.img-4.4.0-57-generic
-rw-r--r-- 1 root root 37720049 janv. 17 11:33 initrd.img-4.4.0-59-generic
-rw-r--r-- 1 root root   182704 janv. 28  2016 memtest86+.bin
-rw-r--r-- 1 root root   184380 janv. 28  2016 memtest86+.elf
-rw-r--r-- 1 root root   184840 janv. 28  2016 memtest86+_multiboot.bin
-rw------- 1 root root  3875329 déc.  10 05:04 System.map-4.4.0-57-generic
-rw------- 1 root root  3875594 janv.  7 01:44 System.map-4.4.0-59-generic
-rw------- 1 root root  7067152 déc.  10 05:04 vmlinuz-4.4.0-57-generic
-rw------- 1 root root  7069136 janv.  7 01:44 vmlinuz-4.4.0-59-generic
zeph@zeph-HP:/boot$
zeph@zeph-HP:/boot$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
# 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

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

## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu xenial main
# deb-src http://extras.ubuntu.com/ubuntu xenial main

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

## Major bug fix updates produced after the final release of the
## distribution.
deb-src http://fr.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse

## 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-src http://fr.archive.ubuntu.com/ubuntu/ xenial 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-src http://fr.archive.ubuntu.com/ubuntu/ xenial 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-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

deb-src http://security.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
# deb-src http://security.ubuntu.com/ubuntu xenial-security universe
# deb-src http://security.ubuntu.com/ubuntu xenial-security multiverse
zeph@zeph-HP:/boot$

On peut updater grub à présent?


Ubuntero depuis le 6/11/2010. fibré le 17/11/2020  NRO 93073TRE   Freebox mini 4K  (wifi n)
ordinateur HP notebook 17" ca0000nf AMD A9-9425   SSD SATA 1To   ram 8Go  Table gpt   EFI
Dual boot Win10/Ubuntu 22.04.3.  FTTH / ethernet:  down 340Mb/s   up 330Mb/s   ping 6ms

Hors ligne

#10 Le 17/01/2017, à 17:11

moko138

Re : [Résolu]Anciens noyaux UBUNTU à virer

Finis déjà le boulot indiqué par cqfd93 :
Tu as ces deux lignes

deb http://archive.canonical.com/ubuntu xenial partner
# deb-src http://archive.canonical.com/ubuntu xenial partner

aux lignes 42-43 et
aux lignes 85-86 de ton sources.list :
donc supprime une des deux paires.


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#11 Le 17/01/2017, à 17:15

cqfd93

Re : [Résolu]Anciens noyaux UBUNTU à virer

zeph22 a écrit :

Il y a eu du nettoyage! smile

Oui, c'est bien, il ne reste que les deux derniers noyaux.

zeph@zeph-HP:/boot$ cat /etc/apt/sources.list…

Ton sources.list est assez bordélique, je te propose de le renommer et d'en créer un tout propre. Pour ce qui suit, si tu obtiens un message d'erreur, arrête tout et dis-le ici.

  • Renomme sources.list en sources.bak :

    cd /etc/apt/
    sudo mv -v sources.list sources.bak
  • Ouvre un nouveau sources.list avec nano :

    sudo nano /etc/apt/sources.list
  • Colle ce qui suit avec un clic droit / coller :

    # deb cdrom:[Ubuntu 16.04.1 LTS _Xenial Xerus_ - Release amd64 (20160719)]/ xenial main restricted
    
    deb http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
    deb http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
    # deb-src http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
    
    deb http://archive.canonical.com/ubuntu xenial partner
    # deb-src http://archive.canonical.com/ubuntu xenial partner
  • Enregistre avec ctrl-O suivi de Entrée et ferme avec ctrl-X.

  • Tu n'as plus qu'à faire les mises à jour :

    sudo apt update
    sudo apt full-upgrade

On peut updater grub à présent?

Je ne pense pas qu'il y ait besoin d'updater grub.


cqfd93

Hors ligne

#12 Le 17/01/2017, à 17:35

moko138

Re : [Résolu]Anciens noyaux UBUNTU à virer

Je ne pense pas qu'il y ait besoin d'updater grub.

Ce n'est sûrement pas indispensable. Mais je pense que ça allègera /boot/grub/grub.cfg des entrées correspondant aux multiples :

Image Linux trouvée : /boot/vmlinuz-3.13.*
Image mémoire initiale trouvée : /boot/initrd.img-3.13.*

et donc que, sans attendre la prochaine installation d'un noyau, ça abrègera les prochains démarrages.


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#13 Le 17/01/2017, à 18:03

cqfd93

Re : [Résolu]Anciens noyaux UBUNTU à virer

moko138 a écrit :

Je ne pense pas qu'il y ait besoin d'updater grub.

Ce n'est sûrement pas indispensable. Mais je pense que ça allègera /boot/grub/grub.cfg des entrées correspondant aux multiples :

Image Linux trouvée : /boot/vmlinuz-3.13.*
Image mémoire initiale trouvée : /boot/initrd.img-3.13.*

et donc que, sans attendre la prochaine installation d'un noyau, ça abrègera les prochains démarrages.

Très juste !


cqfd93

Hors ligne

#14 Le 17/01/2017, à 18:49

zeph22

Re : [Résolu]Anciens noyaux UBUNTU à virer

cqfd93 a écrit :
moko138 a écrit :

Je ne pense pas qu'il y ait besoin d'updater grub.

Ce n'est sûrement pas indispensable. Mais je pense que ça allègera /boot/grub/grub.cfg des entrées correspondant aux multiples :

Image Linux trouvée : /boot/vmlinuz-3.13.*
Image mémoire initiale trouvée : /boot/initrd.img-3.13.*

et donc que, sans attendre la prochaine installation d'un noyau, ça abrègera les prochains démarrages.

Très juste !

Finalement, j'ai updaté grub avec

sudo update-grub

Il n'y a plus que les deux derniers noyaux 57 et 59 en liste. C'est clean.
Par contre, les répertoires headers 57 (avant-dernière version) n'apparaissent pas dans src.
Ce n'est sans doute pas indispensable, on s'en servira probablement plus jamais, mais ça serait plus académique...
(ok, je chipotte! smile) Possible de faire une réinstallation?

Par ailleurs j'ai lancé un

dpkg -l | awk '/ +linux/ && /headers|generic/{ if(match($2,/([0-9]\.)+/)) {print $2} }'|sort -t- -rV -k3,4|paste -d" " - - -

Ça a répondu ceci :

linux-image-extra-4.4.0-59-generic 
linux-image-extra-4.4.0-57-generic 
linux-image-extra-4.4.0-53-generic
linux-image-extra-4.4.0-51-generic 
linux-image-extra-4.4.0-47-generic 
linux-image-extra-4.4.0-45-generic
linux-image-extra-4.4.0-43-generic 
linux-image-extra-4.4.0-38-generic 
linux-image-extra-4.4.0-21-generic

linux-image-4.4.0-59-generic 
linux-headers-4.4.0-59-generic 
linux-headers-4.4.0-59
linux-image-4.4.0-57-generic 
linux-headers-4.4.0-57-generic 
linux-headers-4.4.0-57

linux-image-4.4.0-53-generic 
linux-image-4.4.0-51-generic 
linux-image-4.4.0-47-generic
linux-image-4.4.0-45-generic 
linux-image-4.4.0-43-generic 
linux-image-4.4.0-38-generic
linux-image-4.4.0-21-generic  
zeph@zeph-HP:~$

On constate qu'il y a des "image" et des "image-extra" beaucoup plus anciens, de 21 à 53.
Possible de les virer ?
Je fais une pause et j'attaque le sources.list...


Ubuntero depuis le 6/11/2010. fibré le 17/11/2020  NRO 93073TRE   Freebox mini 4K  (wifi n)
ordinateur HP notebook 17" ca0000nf AMD A9-9425   SSD SATA 1To   ram 8Go  Table gpt   EFI
Dual boot Win10/Ubuntu 22.04.3.  FTTH / ethernet:  down 340Mb/s   up 330Mb/s   ping 6ms

Hors ligne

#15 Le 17/01/2017, à 22:36

zeph22

Re : [Résolu]Anciens noyaux UBUNTU à virer

Ça s'est passé comme sur des roulettes!

zeph@zeph-HP:~$ cd /etc/apt/
zeph@zeph-HP:/etc/apt$ sudo mv -v sources.list sources.bak
[sudo] Mot de passe de zeph : 
'sources.list' -> 'sources.bak'
zeph@zeph-HP:/etc/apt$ sudo nano /etc/apt/sources.list
zeph@zeph-HP:/etc/apt$ sudo apt update
Atteint:1 http://archive.ubuntu.com/ubuntu xenial InRelease
Réception de:2 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [102 kB]
Atteint:3 http://archive.canonical.com/ubuntu xenial InRelease                 
Réception de:4 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [102 kB]
Réception de:5 http://archive.ubuntu.com/ubuntu xenial-security InRelease [102 kB]
Réception de:6 http://archive.ubuntu.com/ubuntu xenial/main i386 Packages [1 196 kB]
Réception de:7 http://archive.ubuntu.com/ubuntu xenial/main Translation-fr [597 kB]
Réception de:8 http://archive.ubuntu.com/ubuntu xenial/restricted i386 Packages [8 684 B]
Réception de:9 http://archive.ubuntu.com/ubuntu xenial/restricted Translation-fr [2 824 B]
Réception de:10 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [7 532 kB]
Réception de:11 http://archive.ubuntu.com/ubuntu xenial/universe i386 Packages [7 512 kB]
Réception de:12 http://archive.ubuntu.com/ubuntu xenial/universe Translation-fr [2 524 kB]
Réception de:13 http://archive.ubuntu.com/ubuntu xenial/universe Translation-en [4 354 kB]
Réception de:14 http://archive.ubuntu.com/ubuntu xenial/universe amd64 DEP-11 Metadata [3 410 kB]
Réception de:15 http://archive.ubuntu.com/ubuntu xenial/universe DEP-11 64x64 Icons [7 448 kB]
Réception de:16 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [144 kB]
Réception de:17 http://archive.ubuntu.com/ubuntu xenial/multiverse i386 Packages [140 kB]
Réception de:18 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-fr [105 kB]
Réception de:19 http://archive.ubuntu.com/ubuntu xenial/multiverse Translation-en [106 kB]
Réception de:20 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 DEP-11 Metadata [63,8 kB]
Réception de:21 http://archive.ubuntu.com/ubuntu xenial/multiverse DEP-11 64x64 Icons [230 kB]
Réception de:22 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [452 kB]
Réception de:23 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 Packages [444 kB]
Réception de:24 http://archive.ubuntu.com/ubuntu xenial-updates/main Translation-en [178 kB]
Réception de:25 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 DEP-11 Metadata [302 kB]
Réception de:26 http://archive.ubuntu.com/ubuntu xenial-updates/main DEP-11 64x64 Icons [180 kB]
Réception de:27 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [6 576 B]
Réception de:28 http://archive.ubuntu.com/ubuntu xenial-updates/restricted i386 Packages [6 528 B]
Réception de:29 http://archive.ubuntu.com/ubuntu xenial-updates/restricted Translation-en [2 016 B]
Réception de:30 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 DEP-11 Metadata [157 B]
Réception de:31 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [378 kB]
Réception de:32 http://archive.ubuntu.com/ubuntu xenial-updates/universe i386 Packages [373 kB]
Réception de:33 http://archive.ubuntu.com/ubuntu xenial-updates/universe Translation-en [140 kB]
Réception de:34 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 DEP-11 Metadata [127 kB]
Réception de:35 http://archive.ubuntu.com/ubuntu xenial-updates/universe DEP-11 64x64 Icons [154 kB]
Réception de:36 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [7 384 B]
Réception de:37 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse i386 Packages [6 180 B]
Réception de:38 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse Translation-en [3 080 B]
Réception de:39 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 DEP-11 Metadata [2 516 B]
Réception de:40 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse DEP-11 64x64 Icons [7 765 B]
Réception de:41 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [4 404 B]
Réception de:42 http://archive.ubuntu.com/ubuntu xenial-backports/main i386 Packages [4 404 B]
Réception de:43 http://archive.ubuntu.com/ubuntu xenial-backports/main Translation-en [3 124 B]
Réception de:44 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 DEP-11 Metadata [208 B]
Réception de:45 http://archive.ubuntu.com/ubuntu xenial-backports/main DEP-11 64x64 Icons [29 B]
Réception de:46 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 DEP-11 Metadata [194 B]
Réception de:47 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [2 412 B]
Réception de:48 http://archive.ubuntu.com/ubuntu xenial-backports/universe i386 Packages [2 412 B]
Réception de:49 http://archive.ubuntu.com/ubuntu xenial-backports/universe Translation-en [1 216 B]
Réception de:50 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 DEP-11 Metadata [212 B]
Réception de:51 http://archive.ubuntu.com/ubuntu xenial-backports/universe DEP-11 64x64 Icons [29 B]
Réception de:52 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 DEP-11 Metadata [212 B]
Réception de:53 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse DEP-11 64x64 Icons [29 B]
Réception de:54 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 Packages [201 kB]
Réception de:55 http://archive.ubuntu.com/ubuntu xenial-security/main i386 Packages [195 kB]
Réception de:56 http://archive.ubuntu.com/ubuntu xenial-security/main Translation-en [84,3 kB]
Réception de:57 http://archive.ubuntu.com/ubuntu xenial-security/main amd64 DEP-11 Metadata [68,1 kB]
Réception de:58 http://archive.ubuntu.com/ubuntu xenial-security/main DEP-11 64x64 Icons [43,0 kB]
Réception de:59 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [6 576 B]
Réception de:60 http://archive.ubuntu.com/ubuntu xenial-security/restricted i386 Packages [6 528 B]
Réception de:61 http://archive.ubuntu.com/ubuntu xenial-security/restricted Translation-en [2 016 B]
Réception de:62 http://archive.ubuntu.com/ubuntu xenial-security/restricted amd64 DEP-11 Metadata [200 B]
Réception de:63 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [69,3 kB]
Réception de:64 http://archive.ubuntu.com/ubuntu xenial-security/universe i386 Packages [65,5 kB]
Réception de:65 http://archive.ubuntu.com/ubuntu xenial-security/universe Translation-en [37,9 kB]
Réception de:66 http://archive.ubuntu.com/ubuntu xenial-security/universe amd64 DEP-11 Metadata [25,4 kB]
Réception de:67 http://archive.ubuntu.com/ubuntu xenial-security/universe DEP-11 64x64 Icons [31,7 kB]
Réception de:68 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [2 760 B]
Réception de:69 http://archive.ubuntu.com/ubuntu xenial-security/multiverse i386 Packages [2 928 B]
Réception de:70 http://archive.ubuntu.com/ubuntu xenial-security/multiverse Translation-en [1 124 B]
Réception de:71 http://archive.ubuntu.com/ubuntu xenial-security/multiverse amd64 DEP-11 Metadata [212 B]
Réception de:72 http://archive.ubuntu.com/ubuntu xenial-security/multiverse DEP-11 64x64 Icons [29 B]
39,3 Mo réceptionnés en 10s (3 728 ko/s)                                       
AppStream cache update completed, but some metadata was ignored due to errors.
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
4 packages can be upgraded. Run 'apt list --upgradable' to see them.
zeph@zeph-HP:

Serait-ce mieux rangé ainsi ?

zeph@zeph-HP:/etc/apt$ sudo apt full-upgrade
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Calcul de la mise à jour... Fait
Les paquets suivants seront mis à jour :
  dbus dbus-x11 libdbus-1-3 libdbus-1-3:i386
4 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 497 ko dans les archives.
Après cette opération, 0 o d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] o
Réception de:1 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dbus-x11 amd64 1.10.6-1ubuntu3.3 [21,4 kB]
Réception de:2 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 libdbus-1-3 amd64 1.10.6-1ubuntu3.3 [161 kB]
Réception de:3 http://archive.ubuntu.com/ubuntu xenial-updates/main i386 libdbus-1-3 i386 1.10.6-1ubuntu3.3 [173 kB]
Réception de:4 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 dbus amd64 1.10.6-1ubuntu3.3 [142 kB]
497 ko réceptionnés en 0s (2 693 ko/s)
(Lecture de la base de données... 253465 fichiers et répertoires déjà installés.)
Préparation du dépaquetage de .../dbus-x11_1.10.6-1ubuntu3.3_amd64.deb ...
Dépaquetage de dbus-x11 (1.10.6-1ubuntu3.3) sur (1.10.6-1ubuntu3.1) ...
Préparation du dépaquetage de .../libdbus-1-3_1.10.6-1ubuntu3.3_i386.deb ...
Déconfiguration de libdbus-1-3:amd64 (1.10.6-1ubuntu3.1) ...
Dépaquetage de libdbus-1-3:i386 (1.10.6-1ubuntu3.3) sur (1.10.6-1ubuntu3.1) ...
Préparation du dépaquetage de .../libdbus-1-3_1.10.6-1ubuntu3.3_amd64.deb ...
Dépaquetage de libdbus-1-3:amd64 (1.10.6-1ubuntu3.3) sur (1.10.6-1ubuntu3.1) ...
Préparation du dépaquetage de .../dbus_1.10.6-1ubuntu3.3_amd64.deb ...
Dépaquetage de dbus (1.10.6-1ubuntu3.3) sur (1.10.6-1ubuntu3.1) ...
Traitement des actions différées (« triggers ») pour man-db (2.7.5-1) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.23-0ubuntu5) ...
Traitement des actions différées (« triggers ») pour systemd (229-4ubuntu13) ...
Traitement des actions différées (« triggers ») pour ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Paramétrage de libdbus-1-3:amd64 (1.10.6-1ubuntu3.3) ...
Paramétrage de libdbus-1-3:i386 (1.10.6-1ubuntu3.3) ...
Paramétrage de dbus (1.10.6-1ubuntu3.3) ...
A reboot is required to replace the running dbus-daemon.
Please reboot the system when convenient.
Paramétrage de dbus-x11 (1.10.6-1ubuntu3.3) ...
Traitement des actions différées (« triggers ») pour libc-bin (2.23-0ubuntu5) ...
zeph@zeph-HP:/etc/apt$ 

Ubuntero depuis le 6/11/2010. fibré le 17/11/2020  NRO 93073TRE   Freebox mini 4K  (wifi n)
ordinateur HP notebook 17" ca0000nf AMD A9-9425   SSD SATA 1To   ram 8Go  Table gpt   EFI
Dual boot Win10/Ubuntu 22.04.3.  FTTH / ethernet:  down 340Mb/s   up 330Mb/s   ping 6ms

Hors ligne

#16 Le 17/01/2017, à 22:45

zeph22

Re : [Résolu]Anciens noyaux UBUNTU à virer

Redémarrage réussi ! RAS, normal.
Concernant l'absence de l'avant-dernière version 57 dans le repertoire src,
puis-je utiliser la formule donnée au #2 en remplaçant 59 par 57?

Dernière modification par zeph22 (Le 17/01/2017, à 23:18)


Ubuntero depuis le 6/11/2010. fibré le 17/11/2020  NRO 93073TRE   Freebox mini 4K  (wifi n)
ordinateur HP notebook 17" ca0000nf AMD A9-9425   SSD SATA 1To   ram 8Go  Table gpt   EFI
Dual boot Win10/Ubuntu 22.04.3.  FTTH / ethernet:  down 340Mb/s   up 330Mb/s   ping 6ms

Hors ligne

#17 Le 18/01/2017, à 00:04

moko138

Re : [Résolu]Anciens noyaux UBUNTU à virer

Tu pourrais mais
1) c'est inutile ;
2) Tu ferais mieux
2.1) si tu aimes bidouiller, d'apprendre à nettoyer régulièrement et sans excès ton système;
2.2) si tu préfères automatiser le nettoyage, de copier-coller dans l'ordre les six dernières commandes de ce message de nany ./viewtopic.php?pid=21300891#p21300891.


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#18 Le 18/01/2017, à 03:12

zeph22

Re : [Résolu]Anciens noyaux UBUNTU à virer

moko138 a écrit :

...
2.1) si tu aimes bidouiller, d'apprendre à nettoyer régulièrement et sans excès ton système; ...

Exact, j'aime bien bidouiller. smile
Depuis mon expérience passée de 2015, j'étais vigilant concernant les anciens noyaux.
Je suis surpris de me retrouver avec un df -h à 68% d'occupation sur sda7, ma partition racine.
Pour moi, c'est énorme et je m'étonne de ne l'avoir pas vu venir.
Il y a longtemps que j'aurais réagi.

zeph@zeph-HP:~$ df -h
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
/dev/sda7           29G     19G  8,7G  68% /

Je soupçonne que c'est à la suite de la mise à niveau en 16-04. J'aurais dû jeter un œil juste avant.
Explication peut-être : les mises à jour du noyau 16-04 étaient réglées par défaut sur "automatique".
Donc je ne les voyais pas arriver.
Avec la 14-04, c'était "manuel" et à chaque nouveau noyau reçu, correspondait la destruction du plus ancien.
Je viens de régler sur "manuel".

Bref, je disposais des 3 lignes de commande suivantes (en terminal bien sûr) :

1)   sudo apt-get remove --purge linux-headers-3.13.0-xx 
puis
2)   sudo apt-get remove --purge linux-image-3.13.0-xx
puis, 
3)   sudo apt-get autoremove

en remplaçant 3.13.0-xx par le n° complet de la version à virer.
Je trouvais ça marrant. (comme quoi, on peut s'amuser avec n'importe quoi big_smile) et ça marchait bien!
Seul défaut, ces lignes de commande ne voient pas autre chose que la version courante.
(4.4 actuellement), impossible d'aller traiter les autres. Pour ça il faut d'autres commandes.
Et c'est ça qui a créé le problème à l'origine de ce post. Je n'ai pas su "bidouiller".
Voili-voilou. Et merci encore de tes conseils pertinents. smile

Dernière modification par zeph22 (Le 18/01/2017, à 03:50)


Ubuntero depuis le 6/11/2010. fibré le 17/11/2020  NRO 93073TRE   Freebox mini 4K  (wifi n)
ordinateur HP notebook 17" ca0000nf AMD A9-9425   SSD SATA 1To   ram 8Go  Table gpt   EFI
Dual boot Win10/Ubuntu 22.04.3.  FTTH / ethernet:  down 340Mb/s   up 330Mb/s   ping 6ms

Hors ligne

#19 Le 18/01/2017, à 09:03

moko138

Re : [Résolu]Anciens noyaux UBUNTU à virer

En 14.04, j'utilise une ligne à quatre paquets :

sudo apt-get remove --purge linux-headers-3.13.0-xx  linux-headers-3.13.0-xx-generic  linux-image-3.13.0-xx-generic  linux-image-extra-3.13.0-xx-generic

Peut-être que la suppression de tes deux entraîne la suppression des quatre, je vérifierai au prochain noyau installé.


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#20 Le 18/01/2017, à 13:03

zeph22

Re : [Résolu]Anciens noyaux UBUNTU à virer

OK. J'ai noté ta formule dans mon pense-bête.
N'oublie pas de me tenir informé! wink


Ubuntero depuis le 6/11/2010. fibré le 17/11/2020  NRO 93073TRE   Freebox mini 4K  (wifi n)
ordinateur HP notebook 17" ca0000nf AMD A9-9425   SSD SATA 1To   ram 8Go  Table gpt   EFI
Dual boot Win10/Ubuntu 22.04.3.  FTTH / ethernet:  down 340Mb/s   up 330Mb/s   ping 6ms

Hors ligne

#21 Le 03/02/2017, à 17:45

zeph22

Re : [Résolu]Anciens noyaux UBUNTU à virer

@ moko138
Une nouvelle version d'Ubuntu 16.04 (la 4.4.0-62) est arrivée ce matin.
Installation, redémarrage ok.
Pour virer l'antépénultième version, la 4.4.0-57, j'ai utilisé ta formule ci-dessus.
Elle marche bien mais j'ai une petite critique à formuler :
il faut préciser 4 fois le n° complet de la version à virer sad
J’ai survécu. big_smile
A+ smile


Ubuntero depuis le 6/11/2010. fibré le 17/11/2020  NRO 93073TRE   Freebox mini 4K  (wifi n)
ordinateur HP notebook 17" ca0000nf AMD A9-9425   SSD SATA 1To   ram 8Go  Table gpt   EFI
Dual boot Win10/Ubuntu 22.04.3.  FTTH / ethernet:  down 340Mb/s   up 330Mb/s   ping 6ms

Hors ligne

#22 Le 03/02/2017, à 20:44

moko138

Re : [Résolu]Anciens noyaux UBUNTU à virer

moko138 a écrit :

En 14.04, j'utilise une ligne à quatre paquets :

sudo apt-get remove --purge linux-headers-3.13.0-xx  linux-headers-3.13.0-xx-generic  linux-image-3.13.0-xx-generic  linux-image-extra-3.13.0-xx-generic

Peut-être que la suppression de tes deux entraîne la suppression des quatre, je vérifierai au prochain noyau installé.

Sans attendre un nouveau noyau,
1) Tu parles (18/1, 02h12) de sudo apt-get remove --purge linux-image-3.13.0-xx
Mais je n'ai pas de paquet linux-image-3.13.0-xx tout court.
J'ai :
linux-image-3.13.0-106-generic  et
linux-image-extra-3.13.0-106-generic.
  - -

2) Il suffit d'une simulation :

sudo apt-get -s remove --purge linux-headers-3.13.0-106   linux-image-3.13.0-106-generic
(...)
Les paquets suivants seront ENLEVÉS :
  linux-headers-3.13.0-106* linux-headers-3.13.0-106-generic*
  linux-image-3.13.0-106-generic* linux-image-extra-3.13.0-106-generic*
(...)
Purg linux-headers-3.13.0-106-generic [3.13.0-106.153]
Purg linux-headers-3.13.0-106 [3.13.0-106.153]
Purg linux-image-extra-3.13.0-106-generic [3.13.0-106.153]
Purg linux-image-3.13.0-106-generic [3.13.0-106.153]

Donc j'en nomme deux, et les quatre paquets du noyau N-1 sont désinstallés et purgés.
/!\  NE PAS appliquer sans l'option -s cette commande au noyau N ! Parce qu'alors des paquets sans doublons seraient purgés !
  - -

3) Tu écrivais, zeph22 :

j'ai une petite critique à formuler :
il faut préciser 4 fois le n° complet de la version à virer sad

Eh bien non :
D'abord parce qu'on peut copier-coller sa ligne pense-bête

sudo apt-get remove --purge linux-headers-3.13.0-74  linux-headers-3.13.0-74-generic  linux-image-3.13.0-74-generic  linux-image-extra-3.13.0-74-generic

dans son propre fichier pense-bête, et lui appliquer Ctrl h  smile

Ensuite, en raison du point #2.  smile

Enfin, il faut choisir :
  soit tu veux donner libre cours à ta flemme, et tu appliques les 6 commandes de nany une fois pour toutes ;
  soit tu veux bidouiller.  lol


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne