Відмінності між версіями «Оновлення ОС Debian Linux»

м
м (Встановлення нового ядра)
Рядок 52: Рядок 52:
 
  │ or the system may become unbootable.                                                                      │  
 
  │ or the system may become unbootable.                                                                      │  
 
  │ Update disk device IDs in system configuration?                                                          │  
 
  │ Update disk device IDs in system configuration?                                                          │  
 +
│                                                                                                          │
 
  │                      <Так>                                            <Ні>                                │  
 
  │                      <Так>                                            <Ні>                                │  
 
  └───────────────────────────────────────────────────────────────────────────────────────────────────────────
 
  └───────────────────────────────────────────────────────────────────────────────────────────────────────────
 
ТАК
 
ТАК
 
  ┌───────────┤ Налаштування linux-base ├────────────┐
 
  ┌───────────┤ Налаштування linux-base ├────────────┐
│                                                  │
 
 
  │ These configuration files will be updated:      │  
 
  │ These configuration files will be updated:      │  
│                                                  │
 
 
  │ /etc/udev/rules.d/70-persistent-cd.rules        │  
 
  │ /etc/udev/rules.d/70-persistent-cd.rules        │  
│                                                  │
 
 
  │ The device IDs will be changed as follows:      │  
 
  │ The device IDs will be changed as follows:      │  
│                                                  │
 
 
  │ + PATH=pci-0000:00:11.1-scsi-0:0:0:0            │  
 
  │ + PATH=pci-0000:00:11.1-scsi-0:0:0:0            │  
│                                                  │
 
 
  │ Apply configuration changes to disk device IDs?  │  
 
  │ Apply configuration changes to disk device IDs?  │  
 
  │                                                  │  
 
  │                                                  │  
Рядок 71: Рядок 67:
 
ТАК
 
ТАК
  
+
== Встановлення Udev ==
 +
 
 +
apt-get install udev
 +
 
 +
== Перезавантаження ==
 +
 
 +
reboot
 +
 
 +
== Grub ==
 +
 
 +
Якщо Grub не знаходитиме розділ з ядром, — виставити розділ вручну (напр. /dev/sda1)
 +
 
 +
 
 +
== Оновлення решти пакунків ==
 +
 
 +
apt-get upgrade
 +
apt-get dist-upgrade
  
 
== Посилання ==
 
== Посилання ==

Версія за 11:38, 21 лютого 2012

Оновлення ОС Debian GNU/Linux

Оновлення Debian 5 Lenny »» 6 Squeeze

Поновлення існуючої системи

apt-get update
apt-get upgrade
apt-get dist-upgrade

Репозитарій Squeeze

У /etc/apt/sources.list додати рядки

deb http://ftp.us.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.us.debian.org/debian/ squeeze main contrib non-free

deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

deb http://ftp.us.debian.org/debian squeeze-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian squeeze-updates main contrib non-free


Рядки репозитаріїв Lenny закоментувати.

Оновити перелік пакунків:

apt-get update

Вилучення старого ядра

apt-get remove linux-source-2.6 linux-headers-2.6-486

Встановлення нового ядра

Також встановлюються й прошивки.

apt-get install linux-headers-2.6.32-5-686 linux-kbuild-2.6.32 linux-source-2.6.32 \
linux-headers-2.6.32-5-common linux-image-2.6.32-5-686 firmware-linux-free firmware-linux-nonfree

При цьому будуть запитання від Debconf:

┌───────────────────────────────────────────────────────┤ Налаштування linux-base  ├────────────────────────┐
│ The new Linux kernel version provides different drivers for some PATA (IDE) controllers.                  │ 
│ The names of some hard disk, CD-ROM, and tape devices may change.                                         │    
│ It is now recommended to identify disk devices in configuration files by label or UUID (unique identifier)│ 
│ rather than by device name,                                                                               │  
│ which will work with both old and new kernel versions.                                                    │ 
│ If you choose to not update the system configuration automatically, you must update device IDs yourself   │ 
│ before the next system reboot                                                                             │ 
│ or the system may become unbootable.                                                                      │ 
│ Update disk device IDs in system configuration?                                                           │ 
│                                                                                                           │ 
│                      <Так>                                            <Ні>                                │ 
└───────────────────────────────────────────────────────────────────────────────────────────────────────────

ТАК

┌───────────┤ Налаштування linux-base ├────────────┐
│ These configuration files will be updated:       │ 
│ /etc/udev/rules.d/70-persistent-cd.rules         │ 
│ The device IDs will be changed as follows:       │ 
│ + PATH=pci-0000:00:11.1-scsi-0:0:0:0             │ 
│ Apply configuration changes to disk device IDs?  │ 
│                                                  │ 
│            <Так>               <Ні>              │ 
└──────────────────────────────────────────────────

ТАК

Встановлення Udev

apt-get install udev

Перезавантаження

reboot

Grub

Якщо Grub не знаходитиме розділ з ядром, — виставити розділ вручну (напр. /dev/sda1)


Оновлення решти пакунків

apt-get upgrade
apt-get dist-upgrade

Посилання

Див. також