J'ai exécuté une commande potentiellement dangereuse et imprévisible, et j'ai besoin d'aide pour annuler les modifications qu'elle a pu apporter. Sans réinstaller Ubuntu si possible. Je dois m'assurer que je n'ai pas eu de problèmes de compatibilité en installant de vieux logiciels. Car si c'est le cas, je risque d'avoir beaucoup de bugs et de problèmes à l'avenir, et ce sera la cause.
La situation : J'essayais de résoudre des problèmes MIDI. J'ai donc trouvé cette page a trouvé cette commande et l'a exécutée :
sudo aptitude --purge reinstall linux-sound-base alsa-base alsa-utils linux-image-`uname -r` linux-ubuntu-modules-`uname -r` libasound2
J'ai donné l'autorisation à la racine après qu'on me l'ait demandée. Et le plus dangereux, c'est que même si la commande est suggérée sur une page d'aide d'Ubuntu, la page elle-même dit qu'il est dépassé au sommet et qu'il ne devrait pas être utilisé plusieurs fois.
Il s'agit de l'invite officielle (qui commence par la commande tapée). Pouvez-vous me dire si cela a endommagé ma machine ? Je pense qu'il a pu installer de très vieux logiciels, car l'instruction était dans le tutoriel qui n'était pas recommandé. Comment puis-je revenir à la situation antérieure ? Ou tout simplement il n'y a pas de problème ?
qwerty@qwerty-RV420-RV520-RV720-E3530-S3530:~$ sudo aptitude --purge reinstall linux-sound-base alsa-base alsa-utils linux-image-`uname -r` linux-ubuntu-modules-`uname -r` libasound2
Couldn't find any package whose name or description matched "linux-ubuntu-modules-3.19.0-42-generic"
Couldn't find any package whose name or description matched "linux-ubuntu-modules-3.19.0-42-generic"
The following packages will be REINSTALLED:
alsa-base alsa-utils libasound2 linux-image-3.19.0-42-generic
linux-sound-base
0 packages upgraded, 0 newly installed, 5 reinstalled, 0 to remove and 6 not upgraded.
Need to get 1.427 kB/18,2 MB of archives. After unpacking 0 B will be used.
Get: 1 http://ar.archive.ubuntu.com/ubuntu/ trusty/main libasound2 amd64 1.0.27.2-3ubuntu7 [327 kB]
Get: 2 http://ar.archive.ubuntu.com/ubuntu/ trusty/main alsa-base all 1.0.25+dfsg-0ubuntu4 [151 kB]
Get: 3 http://ar.archive.ubuntu.com/ubuntu/ trusty/main alsa-utils amd64 1.0.27.2-1ubuntu2 [933 kB]
Get: 4 http://ar.archive.ubuntu.com/ubuntu/ trusty/main linux-sound-base all 1.0.25+dfsg-0ubuntu4 [14,5 kB]
Fetched 1.427 kB in 6s (215 kB/s)
Preconfiguring packages ...
(Reading database ... 198306 files and directories currently installed.)
Preparing to unpack .../libasound2_1.0.27.2-3ubuntu7_amd64.deb ...
Unpacking libasound2:amd64 (1.0.27.2-3ubuntu7) over (1.0.27.2-3ubuntu7) ...
Preparing to unpack .../linux-image-3.19.0-42-generic_3.19.0-42.48~14.04.1_amd64.deb ...
Done.
Unpacking linux-image-3.19.0-42-generic (3.19.0-42.48~14.04.1) over (3.19.0-42.48~14.04.1) ...
Examining /etc/kernel/postrm.d .
run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.19.0-42-generic /boot/vmlinuz-3.19.0-42-generic
run-parts: executing /etc/kernel/postrm.d/zz-extlinux 3.19.0-42-generic /boot/vmlinuz-3.19.0-42-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.19.0-42-generic.efi.signed...
P: Writing config for /boot/vmlinuz-3.19.0-42-generic...
P: Writing config for /boot/vmlinuz-3.19.0-25-generic...
P: Writing config for Windows 7 (loader) on /dev/sda1...
P: Writing config for Windows Recovery Environment (loader) on /dev/sda4...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.19.0-42-generic /boot/vmlinuz-3.19.0-42-generic
Preparing to unpack .../alsa-base_1.0.25+dfsg-0ubuntu4_all.deb ...
Unpacking alsa-base (1.0.25+dfsg-0ubuntu4) over (1.0.25+dfsg-0ubuntu4) ...
Preparing to unpack .../alsa-utils_1.0.27.2-1ubuntu2_amd64.deb ...
Unpacking alsa-utils (1.0.27.2-1ubuntu2) over (1.0.27.2-1ubuntu2) ...
Preparing to unpack .../linux-sound-base_1.0.25+dfsg-0ubuntu4_all.deb ...
Unpacking linux-sound-base (1.0.25+dfsg-0ubuntu4) over (1.0.25+dfsg-0ubuntu4) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for ureadahead (0.100.0-16) ...
ureadahead will be reprofiled on next reboot
Setting up libasound2:amd64 (1.0.27.2-3ubuntu7) ...
Setting up linux-image-3.19.0-42-generic (3.19.0-42.48~14.04.1) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
Not updating initrd symbolic links since we are being updated/reinstalled
(3.19.0-42.48~14.04.1 was configured last, according to dpkg)
Not updating image symbolic links since we are being updated/reinstalled
(3.19.0-42.48~14.04.1 was configured last, according to dpkg)
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.19.0-42-generic /boot/vmlinuz-3.19.0-42-generic
run-parts: executing /etc/kernel/postinst.d/dkms 3.19.0-42-generic /boot/vmlinuz-3.19.0-42-generic
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.19.0-42-generic /boot/vmlinuz-3.19.0-42-generic
update-initramfs: Generating /boot/initrd.img-3.19.0-42-generic
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.19.0-42-generic /boot/vmlinuz-3.19.0-42-generic
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.19.0-42-generic /boot/vmlinuz-3.19.0-42-generic
run-parts: executing /etc/kernel/postinst.d/zz-extlinux 3.19.0-42-generic /boot/vmlinuz-3.19.0-42-generic
P: Checking for EXTLINUX directory... found.
P: Writing config for /boot/vmlinuz-3.19.0-42-generic.efi.signed...
P: Writing config for /boot/vmlinuz-3.19.0-42-generic...
P: Writing config for /boot/vmlinuz-3.19.0-25-generic...
P: Writing config for Windows 7 (loader) on /dev/sda1...
P: Writing config for Windows Recovery Environment (loader) on /dev/sda4...
P: Installing debian theme... done.
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.19.0-42-generic /boot/vmlinuz-3.19.0-42-generic
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.19.0-42-generic
Found initrd image: /boot/initrd.img-3.19.0-42-generic
Found linux image: /boot/vmlinuz-3.19.0-25-generic
Found initrd image: /boot/initrd.img-3.19.0-25-generic
Found memtest86+ image: /boot/memtest86+.elf
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows Recovery Environment (loader) on /dev/sda4
Found Debian GNU/Linux (8.2) on /dev/sda5
done
Setting up linux-sound-base (1.0.25+dfsg-0ubuntu4) ...
Setting up alsa-base (1.0.25+dfsg-0ubuntu4) ...
Setting up alsa-utils (1.0.27.2-1ubuntu2) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...