我可以直接从Debian升级到Ubuntu吗?
发表于 : 2005-03-31 21:35
Yes, you can upgrade directly from Debian Woody to Ubuntu 4.10 (Warty Warthog). See http://www.ubuntulinux.org/wiki/WartyUpgradeNotes for notes and caveats about the upgrade process.
WartyUpgradeNotes
* Send this page to somebody
* Print this page
last edited 2 days ago by Matt Zimmerman
This page is a place to collect notes about additional actions which need to be performed for an optimal upgrade to Warty.
See also: HoaryUpgradeNotes, https://www.ubuntulinux.org/support/doc ... rade-sarge
Upgrading From WartyWarthog pre-releases
1.
Add initial user to scanner group:
sudo adduser $(getent passwd 1000 | cut -d: -f1) scanner
Upgrading From Debian
1.
Switch your /etc/apt/sources.list to the ubuntu servers:
deb http://archive.ubuntu.com/ubuntu/ warty main restricted universe
deb-src http://archive.ubuntu.com/ubuntu/ warty main restricted universe
deb http://security.ubuntu.com/ubuntu/ warty-security main restricted
deb-src http://security.ubuntu.com/ubuntu/ warty-security main restricted
2.
Add desktop users to standard groups:
# for group in adm audio cdrom dialout floppy video lpadmin plugdev scanner; do
adduser $(getent passwd 1000 | cut -d: -f1) $group
done
*
This $(...) construction looks scary, but it just determines the login name of the user who installed Ubuntu. You can replace the whole $(...) with the login name, if you are more comfortable with this. Also, repeat the process for all users who shall get access to local peripheral devices (scanners, CD-ROMs?, etc.)
3.
Set up the standard sudo configuration, if desired:
# firstuser=$(getent passwd 1000 | cut -d: -f1); echo "$firstuser ALL=(ALL) ALL" >> /etc/sudoers
*
This is necessary in order to run system configuration applications from the desktop.
4.
Upgrade from unsupported packages to their supported counterparts:
*
apache is superseded by apache2
*
php4 is superseded by libapache2-mod-php4
*
dhcp-client and dhcp-server are superseded by dhcp3-client and dhcp3-server
*
exim is superseded by postfix
5.
Add modules to /etc/modules if necessary
*
See eg https://bugzilla.ubuntu.com/show_bug.cgi?id=1763 . I had to add ide-cd and psmouse to get my cd and synaptics touchpad working.
All Upgrades
1.
Install ubuntu-base and ubuntu-desktop to obtain updated standard desktop package selection:
sudo apt-get install ubuntu-base ubuntu-desktop
*
NOTE: (only applicable to Debian upgrades) this will install udev, which will cause your system to manage /dev with udev, rather than with devfs or statically. This may require manual adjustments on your part, particularly if you have created custom device nodes or symlinks. It would be nice if there were a UdevMigration? document.
2.
Upgrade to latest Ubuntu kernel:
sudo apt-get install linux-686
*
Install linux-<arch> metapackage to receive the latest kernel and automatic kernel upgrades. Replace linux-686 as follows:
o
i386 systems should use linux-386, linux-k7, linux-k7-smp, linux-686 or linux-686-smp
o
powerpc systems should use linux-powerpc
o
amd64 systems should use linux-amd64-generic, linux-amd64-k8, linux-amd64-k8-smp or linux-amd64-xeon
http://www.ubuntulinux.org/support/docu ... rade-woody
http://www.ubuntulinux.org/wiki/WartyUpgradeNotes
WartyUpgradeNotes
* Send this page to somebody
* Print this page
last edited 2 days ago by Matt Zimmerman
This page is a place to collect notes about additional actions which need to be performed for an optimal upgrade to Warty.
See also: HoaryUpgradeNotes, https://www.ubuntulinux.org/support/doc ... rade-sarge
Upgrading From WartyWarthog pre-releases
1.
Add initial user to scanner group:
sudo adduser $(getent passwd 1000 | cut -d: -f1) scanner
Upgrading From Debian
1.
Switch your /etc/apt/sources.list to the ubuntu servers:
deb http://archive.ubuntu.com/ubuntu/ warty main restricted universe
deb-src http://archive.ubuntu.com/ubuntu/ warty main restricted universe
deb http://security.ubuntu.com/ubuntu/ warty-security main restricted
deb-src http://security.ubuntu.com/ubuntu/ warty-security main restricted
2.
Add desktop users to standard groups:
# for group in adm audio cdrom dialout floppy video lpadmin plugdev scanner; do
adduser $(getent passwd 1000 | cut -d: -f1) $group
done
*
This $(...) construction looks scary, but it just determines the login name of the user who installed Ubuntu. You can replace the whole $(...) with the login name, if you are more comfortable with this. Also, repeat the process for all users who shall get access to local peripheral devices (scanners, CD-ROMs?, etc.)
3.
Set up the standard sudo configuration, if desired:
# firstuser=$(getent passwd 1000 | cut -d: -f1); echo "$firstuser ALL=(ALL) ALL" >> /etc/sudoers
*
This is necessary in order to run system configuration applications from the desktop.
4.
Upgrade from unsupported packages to their supported counterparts:
*
apache is superseded by apache2
*
php4 is superseded by libapache2-mod-php4
*
dhcp-client and dhcp-server are superseded by dhcp3-client and dhcp3-server
*
exim is superseded by postfix
5.
Add modules to /etc/modules if necessary
*
See eg https://bugzilla.ubuntu.com/show_bug.cgi?id=1763 . I had to add ide-cd and psmouse to get my cd and synaptics touchpad working.
All Upgrades
1.
Install ubuntu-base and ubuntu-desktop to obtain updated standard desktop package selection:
sudo apt-get install ubuntu-base ubuntu-desktop
*
NOTE: (only applicable to Debian upgrades) this will install udev, which will cause your system to manage /dev with udev, rather than with devfs or statically. This may require manual adjustments on your part, particularly if you have created custom device nodes or symlinks. It would be nice if there were a UdevMigration? document.
2.
Upgrade to latest Ubuntu kernel:
sudo apt-get install linux-686
*
Install linux-<arch> metapackage to receive the latest kernel and automatic kernel upgrades. Replace linux-686 as follows:
o
i386 systems should use linux-386, linux-k7, linux-k7-smp, linux-686 or linux-686-smp
o
powerpc systems should use linux-powerpc
o
amd64 systems should use linux-amd64-generic, linux-amd64-k8, linux-amd64-k8-smp or linux-amd64-xeon
http://www.ubuntulinux.org/support/docu ... rade-woody
http://www.ubuntulinux.org/wiki/WartyUpgradeNotes