个人工具

UbuntuHelp:BreezyUpgrade

来自Ubuntu中文

跳转至: 导航, 搜索

Note: Upgrades from Ubuntu 4.10 (Warty Warthog) to Ubuntu 5.10 (Breezy Badger) are not supported and not recommended. See HoaryUpgradeNotes to upgrade to Ubuntu 5.04 (Hoary Hedgehog)

Pre-Upgrade

  1. It is recommended that you have the "ubuntu-desktop", "kubuntu-desktop", or "edubuntu-desktop" metapackage (depending on which distribution you're running exactly) in order to ensure that you have the full set of default packages. Note that without these metapackages it is much more likely that you will encounter problems during the upgrade. Ed/k/ubuntu relies on the respective package to perform the successful upgrade.
    sudo apt-get install ubuntu-base ubuntu-desktop

To Upgrade

With Breezy CD and Synaptic

  1. Open up Synaptic Package Manager
  2. Click on "Edit/Add CD-ROM"
  3. Click on "Edit/Mark All Upgrades"
  4. Click on "Apply"
  5. See the additional notes below
  6. Note that you need to add the cdrom again with Synaptic "Edit/Add CD-ROM" after the first reboot,this is needed because of new package authentication feature

Through Synaptic Package Manager

  1. Open up Synaptic Package Manager
  2. Change your repositories to look for Breezy (open menu Settings/Repositories and Edit each source to change "hoary" to "breezy")
From
         URI: http://archive.ubuntu.com/ubuntu/
         Distribution: hoary
         Sections: main restricted
To
         http://archive.ubuntu.com/ubuntu/
         Distribution: breezy
         Sections:  main restricted
  1. Reload sources
  2. Mark All Upgrades

Apt-Get

  1. Open up a terminal
  2. gksudo gedit /etc/apt/sources.list (for ubuntu/edubuntu) kdesu kwrite /etc/apt/sources.list (for Kubuntu)
  3. Replace with the following:
deb http://archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu breezy-updates main restricted

deb http://archive.ubuntu.com/ubuntu breezy main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu breezy main universe multiverse restricted

deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted

deb http://security.ubuntu.com/ubuntu breezy-security universe
deb-src http://security.ubuntu.com/ubuntu breezy-security universe
  1. sudo apt-get update
  2. sudo apt-get dist-upgrade

Post-Upgrade

  1. If not running NFS as either client or server, remove portmap, as it's no longer needed:
    sudo apt-get --purge remove portmap
  2. If you have an nVidia graphics card, you will have to re-enable it:
    sudo nvidia-glx-config enable 
  3. If you are without some localisations, you may find that it is necessary to install language-pack-xx, language-pack-xx-base and language-support-xx (where xx = your language code).
  4. Start "update-notifier" and save your gnome-session if you want update notification automatically
  5. Reboot in order to effect all changes (XFree86 to X.org, kernel upgrade, etc.)
  6. If you have problems after the update with postfix (and the packages that depends on it). you just remove and install postfix again. One way of doing this is:
sudo apt-get install --reinstall postfix

Mirror servers

The bandwidth of the main Ubuntu server is not infinite. If you have a very low transfer rate, it is advisable for you to use a mirror. You can find a list of mirrors at https://wiki.ubuntu.com/Archive (this list hasn't been reviewed for a long time and some of these servers may be down). It was made for warty, but notice that these servers are regularly synced with the main server, so you will find breezy packages there as well. Try to find a server which is located somewhere in your country or somewhere close to you. You will probably ask how to use a mirror instead of the main Ubuntu repository. It's quite simple. First find a server suitable for you (e.g.choose one from here https://wiki.ubuntu.com/Archive). I will use a German mirror as an example - http://debian.charite.de/ubuntu/.

  1. Open up a terminal
  2. gksudo gedit /etc/apt/sources.list
  3. and now modify the address of the server. if you used the default settings shown above you will see
deb http://archive.ubuntu.com/ubuntu breezy main universe multiverse restricted
deb-src http://archive.ubuntu.com/ubuntu breezy main universe multiverse restricted

just change it to

deb http://debian.charite.de/ubuntu/ breezy main universe multiverse restricted
deb-src http://debian.charite.de/ubuntu/ breezy main universe multiverse restricted
  1. sudo apt-get update
  2. and you're ready to go

Comments

Comments for this upgrade

  1. NDISWrapper would not load as a kernel module after my upgrade. I kept getting the error: FATAL: Error inserting ndiswrapper (/lib/modules/2.6.12-9-686-smp/kernel/drivers/net/ndiswrapper/ndiswrapper.ko): Operation not permitted. To get NDISWrapper to work correctly, I had to do the following:
     1. Uninstall the current driver. Use ''ndiswrapper -l'' to get the name of the loaded driver, 
        then ''ndiswrapper -e NAME'' to remove the currently installed driver. 
     2. Reinstall the driver with the command ''ndiswrapper -i DRIVER.inf'' using your windows driver.
     3. You should now be able to ''modprobe ndiswrapper'' successfully.
  2. Also if you complied ndiswrapper for a previous kernel you have to recompile it for the new kernel.

Firstly install the linux-headers for your kernel e.g. 2.6.12-9-386 (use Synaptic).

Then go to the directory that you extracted the ndiswrapper files to and run:
sudo make distclean
sudo make
sudo make install 

If your only internet connection is via an ndiswrapper wireless card you can temporarily use the old kernel from the grub menu in order to download the files needed.

  1. The GNOME panel may rapidly leak memory during the upgrade process. Possible workarounds:
  • Open the System Monitor before upgrading, and watch how much Virual Memory the gnome-panel process uses. If this number grows rapidly during installation, just kill the process (the installation will finish nicely, and the panel will re-appear if you reboot).
  • If you have KDE installed, you can use it instead of GNOME while upgrading.

Comments copied from the HoaryUpgrade

  1. Only problem I ran into was I needed to reconfigure X which was solved with a sudo dpkg-reconfigure xserver-xorg
  2. If using the fglrx-driver package in Hoary, install xorg-driver-fglrx in Breezy
  3. Some systems may require extra action to create /dev/cdrom symlinks on boot if desired:
    cd /etc/udev/rules.d
    sudo ln -s ../cd-aliases.rules
    

See https://bugzilla.ubuntu.com/show_bug.cgi?id=7789#c3

  1. For all ATI video card users, make sure to get the xorg ATI driver before restart. You can obtain that by "sudo apt-get install xorg-driver-fglrx"