由于某种原因,我的机器上的软件包统计摘要行与我见过的其他机器上的软件包统计摘要行不同,而且据我所知,源代码也不同。
$ sudo apt upgrade --assume-no
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
0 to upgrade, 0 to newly install, 0 to remove and 0 not to upgrade.
摘要行显示:
to upgrade
to newly install
to remove
not to upgrade
源代码似乎显示:
upgraded
newly installed
to remove
not upgraded
634 ioprintf(out,_("%lu upgraded, %lu newly installed, "),
635 Upgrade,Install);
636
637 if (ReInstall != 0)
638 ioprintf(out,_("%lu reinstalled, "),ReInstall);
639 if (Downgrade != 0)
640 ioprintf(out,_("%lu downgraded, "),Downgrade);
641
642 ioprintf(out,_("%lu to remove and %lu not upgraded.\n"),
643 Dep.DelCount(),Dep.KeepCount());
LSB 信息
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.4 LTS"
在另一台 Xenial 主机上,我看到了预期的行:
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
有人知道这个不同的措辞是从哪里出现的吗?
安装版本:
apt is /usr/bin/apt
apt: /usr/bin/apt
apt:
Installed: 1.2.26
Candidate: 1.2.26
Version table:
*** 1.2.26 500
500 http://gb.archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages
100 /var/lib/dpkg/status
1.2.15ubuntu0.2 500
500 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages
1.2.10ubuntu1 500
500 http://gb.archive.ubuntu.com/ubuntu xenial/main amd64 Packages