請安裝以下套件
sudo apt-get install linux-headers-server linux-image-server linux-server
可以使用free -m看memory
升級過程
nelsonchung@ubuntu:~$ free -m
total used free shared buffers cached
Mem: 2863 2179 684 0 757 967
-/+ buffers/cache: 455 2408
Swap: 254 0 254
nelsonchung@ubuntu:~$ sudo apt-get update
[sudo] password for nelsonchung:
下載:1 http://dl.google.com stable Release.gpg [197B]
略過 http://dl.google.com/linux/chrome/deb/ stable/main Translation-zh_TW
已有 http://tw.archive.ubuntu.com lucid Release.gpg
下載:2 http://tw.archive.ubuntu.com/ubuntu/ lucid/main Translation-zh_TW [56.4kB]
已有 http://security.ubuntu.com lucid-security Release.gpg
略過 http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-zh_TW
已有 http://archive.canonical.com lucid Release.gpg
略過 http://archive.canonical.com/ lucid/partner Translation-zh_TW
已有 http://ppa.launchpad.net lucid Release.gpg
略過 http://ppa.launchpad.net/globalmenu-team/ppa/ubuntu/ lucid/main Translation-zh_TW
已有 http://ppa.launchpad.net lucid Release.gpg
略過 http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-zh_TW
略過 http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-zh_TW
略過 http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-zh_TW
已有 http://security.ubuntu.com lucid-security Release
已有 http://archive.canonical.com lucid Release
略過 http://ppa.launchpad.net/tualatrix/ppa/ubuntu/ lucid/main Translation-zh_TW
已有 http://ppa.launchpad.net lucid Release
下載:3 http://dl.google.com stable Release [1,347B]
略過 http://tw.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-zh_TW
已有 http://ppa.launchpad.net lucid Release
已有 http://security.ubuntu.com lucid-security/main Packages
已有 http://archive.canonical.com lucid/partner Packages
下載:4 http://tw.archive.ubuntu.com/ubuntu/ lucid/universe Translation-zh_TW [29.7kB]
已有 http://ppa.launchpad.net lucid/main Packages
已有 http://security.ubuntu.com lucid-security/restricted Packages
已有 http://security.ubuntu.com lucid-security/main Sources
已有 http://security.ubuntu.com lucid-security/restricted Sources
已有 http://security.ubuntu.com lucid-security/universe Packages
已有 http://security.ubuntu.com lucid-security/universe Sources
下載:5 http://dl.google.com stable/main Packages [1,076B]
已有 http://ppa.launchpad.net lucid/main Packages
已有 http://security.ubuntu.com lucid-security/multiverse Packages
已有 http://security.ubuntu.com lucid-security/multiverse Sources
下載:6 http://tw.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-zh_TW [3,024B]
下載:7 http://tw.archive.ubuntu.com lucid-updates Release.gpg [198B]
略過 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-zh_TW
略過 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-zh_TW
略過 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-zh_TW
略過 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-zh_TW
已有 http://tw.archive.ubuntu.com lucid Release
下載:8 http://tw.archive.ubuntu.com lucid-updates Release [44.7kB]
已有 http://tw.archive.ubuntu.com lucid/main Packages
已有 http://tw.archive.ubuntu.com lucid/restricted Packages
已有 http://tw.archive.ubuntu.com lucid/main Sources
已有 http://tw.archive.ubuntu.com lucid/restricted Sources
已有 http://tw.archive.ubuntu.com lucid/universe Packages
已有 http://tw.archive.ubuntu.com lucid/universe Sources
已有 http://tw.archive.ubuntu.com lucid/multiverse Packages
已有 http://tw.archive.ubuntu.com lucid/multiverse Sources
下載:9 http://tw.archive.ubuntu.com lucid-updates/main Packages [370kB]
下載:10 http://tw.archive.ubuntu.com lucid-updates/restricted Packages [3,240B]
下載:11 http://tw.archive.ubuntu.com lucid-updates/main Sources [141kB]
下載:12 http://tw.archive.ubuntu.com lucid-updates/restricted Sources [1,443B]
下載:13 http://tw.archive.ubuntu.com lucid-updates/universe Packages [159kB]
下載:14 http://tw.archive.ubuntu.com lucid-updates/universe Sources [61.3kB]
下載:15 http://tw.archive.ubuntu.com lucid-updates/multiverse Packages [7,366B]
下載:16 http://tw.archive.ubuntu.com lucid-updates/multiverse Sources [3,677B]
取得 884kB 用了 11s (78.9kB/s)
正在讀取套件清單... 完成
nelsonchung@ubuntu:~$ sudo apt-get install linux-headers-server linux-image-server linux-server
正在讀取套件清單... 完成
正在重建相依關係
正在讀取狀態資料... 完成
下列的額外套件將被安裝:
linux-generic-pae linux-headers-2.6.32-26-generic-pae
linux-headers-generic-pae linux-image-2.6.32-26-generic-pae
linux-image-generic-pae
建議套件:
fdutils linux-doc-2.6.32 linux-source-2.6.32 linux-tools
下列【新】套件將會被安裝:
linux-generic-pae linux-headers-2.6.32-26-generic-pae
linux-headers-generic-pae linux-headers-server
linux-image-2.6.32-26-generic-pae linux-image-generic-pae linux-image-server
linux-server
升級 0 個,新安裝 8 個,移除 0 個,有 12 個未被升級。
需要下載 32.4MB 的套件檔。
此操作完成之後,會多佔用 109MB 的磁碟空間。
是否繼續進行 [Y/n]?y
下載:1 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-image-2.6.32-26-generic-pae 2.6.32-26.48 [31.6MB]
下載:2 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-image-generic-pae 2.6.32.26.28 [4,160B]
下載:3 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-generic-pae 2.6.32.26.28 [4,148B]
下載:4 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-headers-2.6.32-26-generic-pae 2.6.32-26.48 [763kB]
下載:5 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-headers-generic-pae 2.6.32.26.28 [4,148B]
下載:6 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-headers-server 2.6.32.26.28 [4,158B]
下載:7 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-image-server 2.6.32.26.28 [4,156B]
下載:8 http://tw.archive.ubuntu.com/ubuntu/ lucid-updates/main linux-server 2.6.32.26.28 [4,150B]
取得 32.4MB 用了 34s (942kB/s)
選取了原先未被選取的套件 linux-image-2.6.32-26-generic-pae。
(正在讀取資料庫 ... 系統目前共安裝了 156551 個檔案和目錄。)
正在解開 linux-image-2.6.32-26-generic-pae (從 .../linux-image-2.6.32-26-generic-pae_2.6.32-26.48_i386.deb)...
Done.
選取了原先未被選取的套件 linux-image-generic-pae。
正在解開 linux-image-generic-pae (從 .../linux-image-generic-pae_2.6.32.26.28_i386.deb)...
選取了原先未被選取的套件 linux-generic-pae。
正在解開 linux-generic-pae (從 .../linux-generic-pae_2.6.32.26.28_i386.deb)...
選取了原先未被選取的套件 linux-headers-2.6.32-26-generic-pae。
正在解開 linux-headers-2.6.32-26-generic-pae (從 .../linux-headers-2.6.32-26-generic-pae_2.6.32-26.48_i386.deb)...
選取了原先未被選取的套件 linux-headers-generic-pae。
正在解開 linux-headers-generic-pae (從 .../linux-headers-generic-pae_2.6.32.26.28_i386.deb)...
選取了原先未被選取的套件 linux-headers-server。
正在解開 linux-headers-server (從 .../linux-headers-server_2.6.32.26.28_i386.deb)...
選取了原先未被選取的套件 linux-image-server。
正在解開 linux-image-server (從 .../linux-image-server_2.6.32.26.28_i386.deb)...
選取了原先未被選取的套件 linux-server。
正在解開 linux-server (從 .../linux-server_2.6.32.26.28_i386.deb)...
正在設定 linux-image-2.6.32-26-generic-pae (2.6.32-26.48) ...
Running depmod.
update-initramfs: Generating /boot/initrd.img-2.6.32-26-generic-pae
Running postinst hook script /usr/sbin/update-grub.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-26-generic-pae
Found initrd image: /boot/initrd.img-2.6.32-26-generic-pae
Found linux image: /boot/vmlinuz-2.6.32-26-generic
Found initrd image: /boot/initrd.img-2.6.32-26-generic
Found linux image: /boot/vmlinuz-2.6.32-24-generic
Found initrd image: /boot/initrd.img-2.6.32-24-generic
Found Windows NT/2000/XP on /dev/sda1
done
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/nvidia-common 2.6.32-26-generic-pae /boot/vmlinuz-2.6.32-26-generic-pae
run-parts: executing /etc/kernel/postinst.d/pm-utils 2.6.32-26-generic-pae /boot/vmlinuz-2.6.32-26-generic-pae
正在設定 linux-image-generic-pae (2.6.32.26.28) ...
正在設定 linux-generic-pae (2.6.32.26.28) ...
正在設定 linux-headers-2.6.32-26-generic-pae (2.6.32-26.48) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/nvidia-common 2.6.32-26-generic-pae /boot/vmlinuz-2.6.32-26-generic-pae
正在設定 linux-headers-generic-pae (2.6.32.26.28) ...
正在設定 linux-headers-server (2.6.32.26.28) ...
正在設定 linux-image-server (2.6.32.26.28) ...
正在設定 linux-server (2.6.32.26.28) ...
sudo reboot now
重新開機後
nelsonchung@ubuntu:~$ free -m
total used free shared buffers cached
Mem: 5881 1346 4534 0 543 595
-/+ buffers/cache: 207 5674
Swap: 254 0 254
Reference:
沒有留言:
張貼留言