使用“lsb_release -a”和“uname -a”获得不同的输出。哪个是正确的 Ubuntu 版本?

使用“lsb_release -a”和“uname -a”获得不同的输出。哪个是正确的 Ubuntu 版本?

lsb_release -a返回 16.04。3

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 16.04.3 LTS
Release:    16.04
Codename:   xenial

uname -a返回 16.04。2

# uname -a
Linux u1b 4.10.0-28-generic #32~16.04.2-Ubuntu SMP Thu Jul 20 10:19:48 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

哪一个是正确的?

我相信这可能表明我的系统存在问题,因为当我这样做时apt-get -f install,我收到错误,提示“您安装了更高版本,但我需要较低版本”,反之亦然:

# apt -f install
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... failed.
The following packages have unmet dependencies:
 ghostscript:i386 : Depends: gsfonts:i386 (>= 6.0-1) but it is not installable
 ghostscript-dbg : Depends: libgs9 (= 9.18~dfsg~0-0ubuntu2.6) but 9.18~dfsg~0-0ubuntu2.7 is installed or
                            ghostscript (= 9.18~dfsg~0-0ubuntu2.6) or
                            ghostcript-cups (= 9.18~dfsg~0-0ubuntu2.6) but it is not installable or
                            ghostcript-x (= 9.18~dfsg~0-0ubuntu2.6) but it is not installable
 libaudit1 : Breaks: libaudit1:i386 (!= 1:2.4.5-1ubuntu2.1) but 1:2.4.5-1ubuntu2 is installed
 libaudit1:i386 : Breaks: libaudit1 (!= 1:2.4.5-1ubuntu2) but 1:2.4.5-1ubuntu2.1 is installed
 libblkid1 : Breaks: libblkid1:i386 (!= 2.27.1-6ubuntu3.4) but 2.27.1-6ubuntu3.3 is installed
 libblkid1:i386 : Breaks: libblkid1 (!= 2.27.1-6ubuntu3.3) but 2.27.1-6ubuntu3.4 is installed
 libcupsfilters1 : Breaks: libcupsfilters1:i386 (!= 1.8.3-2ubuntu3.3) but 1.8.3-2ubuntu3.1 is installed
 libcupsfilters1:i386 : Breaks: libcupsfilters1 (!= 1.8.3-2ubuntu3.1) but 1.8.3-2ubuntu3.3 is installed
 libgs9 : Depends: libjbig2dec0 (>= 0.11) but it is not installed
 libgs9:i386 : Depends: libgs9-common:i386 (>= 9.18~dfsg~0) but it is not installable
 libmount1 : Breaks: libmount1:i386 (!= 2.27.1-6ubuntu3.4) but 2.27.1-6ubuntu3.3 is installed
 libmount1:i386 : Breaks: libmount1 (!= 2.27.1-6ubuntu3.3) but 2.27.1-6ubuntu3.4 is installed
 libseccomp2 : Breaks: libseccomp2:i386 (!= 2.3.1-2.1ubuntu2~16.04.1) but 2.2.3-3ubuntu3 is installed
 libseccomp2:i386 : Breaks: libseccomp2 (!= 2.2.3-3ubuntu3) but 2.3.1-2.1ubuntu2~16.04.1 is installed
 libuuid1 : Breaks: libuuid1:i386 (!= 2.27.1-6ubuntu3.4) but 2.27.1-6ubuntu3.3 is installed
 libuuid1:i386 : Breaks: libuuid1 (!= 2.27.1-6ubuntu3.3) but 2.27.1-6ubuntu3.4 is installed
 python : PreDepends: python-minimal (= 2.7.11-1) but 2.7.12-1~16.04 is installed
          Depends: libpython-stdlib (= 2.7.11-1) but 2.7.12-1~16.04 is installed
 systemd-shim:i386 : Depends: cgmanager:i386 (>= 0.32) but it is not installable
E: Error, pkgProblemResolver::Resolve generated breaks, this may be caused by held packages.
E: Unable to correct dependencies

如果这确实是一个问题,我该如何解决?

编辑:的输出apt-cache policy ghostscript-dbg为:

ghostscript-dbg:
  Installed: 9.18~dfsg~0-0ubuntu2.6
  Candidate: 9.18~dfsg~0-0ubuntu2.7
  Version table:
     9.18~dfsg~0-0ubuntu2.7 500
        500 http://192.168.12.61/ubuntu xenial-security/main amd64 Packages
 *** 9.18~dfsg~0-0ubuntu2.6 100
        100 /var/lib/dpkg/status
     9.18~dfsg~0-0ubuntu2 500
        500 http://192.168.12.61/ubuntu xenial/main amd64 Packages

源是我设置的 ubuntu 镜像,/etc/apt/sources.list包含以下内容:

deb [arch=amd64] http://192.168.12.61/ubuntu/ xenial main restricted multiverse universe
deb [arch=amd64] http://192.168.12.61/ubuntu/ xenial-security main restricted multiverse universe
deb [arch=amd64] http://192.168.12.61/ubuntu/ xenial-updates main restricted multiverse universe
deb [arch=amd64] http://192.168.12.61/ubuntu/ xenial-proposed main restricted multiverse universe
deb [arch=amd64] http://192.168.12.61/ubuntu/ xenial-backports main restricted multiverse universe

编辑2:sudo apt install ghostscript-dbg=9.18~dfsg~0-0ubuntu2.7

Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 ghostscript:i386 : Depends: gsfonts:i386 (>= 6.0-1) but it is not installable
 libaudit1 : Breaks: libaudit1:i386 (!= 1:2.4.5-1ubuntu2.1) but 1:2.4.5-1ubuntu2 is to be installed
 libaudit1:i386 : Breaks: libaudit1 (!= 1:2.4.5-1ubuntu2) but 1:2.4.5-1ubuntu2.1 is to be installed
 libblkid1 : Breaks: libblkid1:i386 (!= 2.27.1-6ubuntu3.4) but 2.27.1-6ubuntu3.3 is to be installed
 libblkid1:i386 : Breaks: libblkid1 (!= 2.27.1-6ubuntu3.3) but 2.27.1-6ubuntu3.4 is to be installed
 libcupsfilters1 : Breaks: libcupsfilters1:i386 (!= 1.8.3-2ubuntu3.3) but 1.8.3-2ubuntu3.1 is to be installed
 libcupsfilters1:i386 : Breaks: libcupsfilters1 (!= 1.8.3-2ubuntu3.1) but 1.8.3-2ubuntu3.3 is to be installed
 libgs9 : Depends: libjbig2dec0 (>= 0.11) but it is not going to be installed
 libgs9:i386 : Depends: libgs9-common:i386 (>= 9.18~dfsg~0) but it is not installable
 libmount1 : Breaks: libmount1:i386 (!= 2.27.1-6ubuntu3.4) but 2.27.1-6ubuntu3.3 is to be installed
 libmount1:i386 : Breaks: libmount1 (!= 2.27.1-6ubuntu3.3) but 2.27.1-6ubuntu3.4 is to be installed
 libseccomp2 : Breaks: libseccomp2:i386 (!= 2.3.1-2.1ubuntu2~16.04.1) but 2.2.3-3ubuntu3 is to be installed
 libseccomp2:i386 : Breaks: libseccomp2 (!= 2.2.3-3ubuntu3) but 2.3.1-2.1ubuntu2~16.04.1 is to be installed
 libuuid1 : Breaks: libuuid1:i386 (!= 2.27.1-6ubuntu3.4) but 2.27.1-6ubuntu3.3 is to be installed
 libuuid1:i386 : Breaks: libuuid1 (!= 2.27.1-6ubuntu3.3) but 2.27.1-6ubuntu3.4 is to be installed
 python : PreDepends: python-minimal (= 2.7.11-1) but 2.7.12-1~16.04 is to be installed
          Depends: libpython-stdlib (= 2.7.11-1) but 2.7.12-1~16.04 is to be installed
 systemd-shim:i386 : Depends: cgmanager:i386 (>= 0.32) but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

相关内容