操作系统:Ubuntu Xenial Xerus(开发分支)(GNU/Linux 4.4.0-18-generic x86_64)
您好,我已安装并配置了 16.04 的最终测试版,我看到它显示(development branch)
。正式版发布后,当我运行以下任一程序时,它会自动更新到生产发布版本吗?
apt-get upgrade
do-release-upgrade
apt-get dist-upgrade
我是否需要修改某些内容才能开始从产品/发布版本中提取分支什么时候正式发布?
该盒子稳定且运行良好。我是否可以保留当前配置,还是需要完全重新安装?
答案1
一旦 16.04 发布,请运行:
sudo apt-get update
sudo apt-get dist-upgrade
可以解决问题,不需要do-release-upgrade
(这实际上不会产生任何效果,因为您已经在使用 16.04,因此没有地方可以升级)。应该不需要更改任何其他内容,任何需要更改的内容都应该会自动为您完成。
顺便提一下,sudo apt-get dist-upgrade
除了上述所有sudo apt-get upgrade
功能外,还会升级很多东西,因此不需要同时运行两者,该dist-upgrade
选项涵盖了它们,如手册页中所述(man apt-get
):
dist-upgrade in addition to performing the function of upgrade,
also intelligently handles changing dependencies with new versions
of packages; apt-get has a "smart" conflict resolution system, and
it will attempt to upgrade the most important packages at the
expense of less important ones if necessary. The dist-upgrade
command may therefore remove some packages. The
/etc/apt/sources.list file contains a list of locations from which
to retrieve desired package files. See also apt_preferences(5) for
a mechanism for overriding the general settings for individual
packages.