我的 list.sources 文件有问题。现在问题已经解决了,我想知道如何确保 apt-get Upgrade 和 dist-upgrade 系统是安全的?
s2:/var# aptitude upgrade
Resolving dependencies...
open: 4669; closed: 6206; defer: 0; conflict: 0 ^C
在我修复sources.list 文件之前,这一直处于停滞状态并引发了问题。新的源文件:
s2:/etc/apt# cat sources.list
deb http://ftp.us.debian.org/debian jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian jessie main contrib non-free
deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb-src http://ftp.debian.org/debian/ jessie-updates main contrib non-free
deb http://security.debian.org/ jessie/updates main contrib non-free
deb-src http://security.debian.org/ jessie/updates main contrib non-free
apt-get 更新和升级现在可以工作了,我明白了
apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade...
(skip list of packages)
The following packages will be upgraded:
(skip list of packages)
214 upgraded, 0 newly installed, 0 to remove and 43 not upgraded.
Need to get 117 MB of archives.
After this operation, 8,295 kB of additional disk space will be used.
Do you want to continue? [Y/n]
我如何确保可以安全地进行?
系统信息:
s2:/etc/apt# uname -a
Linux ns2 3.2.0-4-powerpc #1 Debian 3.2.65-1+deb7u1 ppc GNU/Linux
ns2:/etc/apt# cat /etc/issue
Debian GNU/Linux 8 \n \l
答案1
首先执行此操作:
apt-get-f install
现在继续 apt-get 更新和升级。老实说,不会出什么差错。
答案2
我如何确保可以安全地进行?
为什么你相信事实并非如此?我根本看不出有什么不寻常的地方。
换句话说,只需按回车键即可继续。这可能需要几分钟的时间,但 114 MB 的存档并不算多。