Diferencias
Muestra las diferencias entre dos versiones de la página.
| Próxima revisión | Revisión previa | ||
|
actualizacion_debian [2012/06/08 12:47] 10.12.12.70 creado |
actualizacion_debian [2017/03/27 17:44] (actual) |
||
|---|---|---|---|
| Línea 11: | Línea 11: | ||
| ===== Edit your Apt sources list file ===== | ===== Edit your Apt sources list file ===== | ||
| + | |||
| To prepare for the installer, we need to get to a point where the package system is in a clean state. Move the preferences file from the directory if used. If you have a very complicated Debian source file, I would recommend that this is simplified to near the original install. | To prepare for the installer, we need to get to a point where the package system is in a clean state. Move the preferences file from the directory if used. If you have a very complicated Debian source file, I would recommend that this is simplified to near the original install. | ||
| Línea 26: | Línea 27: | ||
| - | ==== Update the packages for Lenny ==== | + | ===== Update the packages for Lenny ===== |
| With a few commands we will make sure that the existing package system is in good shape before the system is upgraded to Squeeze. | With a few commands we will make sure that the existing package system is in good shape before the system is upgraded to Squeeze. | ||
| Línea 41: | Línea 43: | ||
| - | === Check that no packages are on hold or in any half installed state === | + | ===== Check that no packages are on hold or in any half installed state ===== |
| Línea 64: | Línea 66: | ||
| - | === Update the source list for Squeeze === | + | ===== Update the source list for Squeeze ===== |
| Update once more the /etc/apt/sources.list: | Update once more the /etc/apt/sources.list: | ||
| - | deb http://ftp.se.debian.org/debian/ squeeze main contrib non-free | + | deb http://ftp.se.debian.org/debian/ squeeze main contrib non-free |
| - | deb-src http://ftp.se.debian.org/debian/ squeeze main contrib non-free | + | deb-src http://ftp.se.debian.org/debian/ squeeze main contrib non-free |
| - | deb http://security.debian.org/ squeeze/updates main | + | deb http://security.debian.org/ squeeze/updates main |
| - | deb-src http://security.debian.org/ squeeze/updates main | + | deb-src http://security.debian.org/ squeeze/updates main |
| and at the command line type: | and at the command line type: | ||
| - | apt-get update | + | apt-get update |
| - | Squeeze upgrade in two careful steps | + | ===== Squeeze upgrade in two careful steps ===== |
| It's recommenced to use a two stage upgrade approach with kernel, udev and the preparation for grub2. After the first completed the full distribution upgrade is performed. Start with the upgrade like so: | It's recommenced to use a two stage upgrade approach with kernel, udev and the preparation for grub2. After the first completed the full distribution upgrade is performed. Start with the upgrade like so: | ||
| - | apt-get upgrade | + | apt-get upgrade |
| Now to the kernel; we need to find your flavor, i.e. the exact version numbers and architecture and install it with: | Now to the kernel; we need to find your flavor, i.e. the exact version numbers and architecture and install it with: | ||
| - | uname -r | + | uname -r |
| - | apt-get install linux-image-2.6.26-2-amd64 | + | apt-get install linux-image-2.6.26-2-amd64 |
| If the system is old like my laptop it would install with: | If the system is old like my laptop it would install with: | ||
| - | apt-get install linux-image-2.6.26-2-686 | + | apt-get install linux-image-2.6.26-2-686 |
| Prepare grub2 and udev for the new system: | Prepare grub2 and udev for the new system: | ||
| - | update-grub | + | update-grub |
| - | apt-get install udev | + | apt-get install udev |
| Once previous steps have completed, it's time to restart the system: | Once previous steps have completed, it's time to restart the system: | ||
| - | reboot | + | reboot |
| - | Almost there | + | ===== Almost there ===== |
| When the system has restarted, continue with the full upgrade phase, download and upgrade: | When the system has restarted, continue with the full upgrade phase, download and upgrade: | ||
| - | apt-get -d dist-upgrade | + | apt-get -d dist-upgrade |
| - | apt-get dist-upgrade | + | apt-get dist-upgrade |
| The latter will be interactive. Starting the system with the first menu item shows if grub2 works properly, if so run: | The latter will be interactive. Starting the system with the first menu item shows if grub2 works properly, if so run: | ||
| - | upgrade-from-grub-legacy | + | upgrade-from-grub-legacy |
| which will install grub2 in the Master Boot Record (MBR) on the disk. | which will install grub2 in the Master Boot Record (MBR) on the disk. | ||
| Further information are found on Debian main site and in the Release Notes here http://www.debian.org/releases/stable/releasenotes | Further information are found on Debian main site and in the Release Notes here http://www.debian.org/releases/stable/releasenotes | ||