![修复冲突的依赖关系](https://linux22.com/image/1145457/%E4%BF%AE%E5%A4%8D%E5%86%B2%E7%AA%81%E7%9A%84%E4%BE%9D%E8%B5%96%E5%85%B3%E7%B3%BB.png)
目前在配备 i5 660 的 Dell Optiplex 上运行 Ubuntu 16.04
我遇到了一些问题看就像依赖冲突,但我不确定我是否正确解释了输出。有人能帮我理解我所看到的内容并帮我修复它吗?
sudo apt-get upgrade
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:
libwinpr-heap0.1 : Depends: libc6 (= .= 2.2.5) but 2.23-0ubuntu5 is installed
E: Unmet dependencies. Try using -f.
humberto@DellServer:~$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libwinpr-heap0.1
Suggested packages:
freerdp-x11
The following packages will be upgraded:
libwinpr-heap0.1
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.3 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 libwinpr-heap0.1 amd64 1.1.0~git20140921.1.440916e+dfsg1-5ubuntu1 [16.3 kB]
Fetched 16.3 kB in 0s (49.5 kB/s)
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 16472 package 'libavdevice-ffmpeg56:amd64':
error in 'Version' field string '7:".8.10-0ubuntu0.16.04.1': version number does not start with digit
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 16536 package 'libc6:i386':
missing description
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 16580 package 'libwinpr-heap0.1:amd64':
'Depends' field, reference to 'libc6':
implicit exact match on version number, suggest using '=' instead
dpkg: warning: parsing file '/var/lib/dpkg/status' near line 16580 package 'libwinpr-heap0.1:amd64':
'Depends' field, reference to 'libc6':
version value starts with non-alphanumeric, suggest adding a space
dpkg: error: parsing file '/var/lib/dpkg/status' near line 16580 package 'libwinpr-heap0.1:amd64':
'Depends' field, reference to 'libc6': version contains ' '
E: Sub-process /usr/bin/dpkg returned an error code (2)
答案1
您遇到这个问题多久了?您可能能够使用 status-old 文件,例如 sudo cp /var/lib/dpkg/status{,.broken},然后 sudo cp /var/lib/dpkg/status{-old,} 或从其中一个备份 /var/backups/dpkg.status.0、/var/backups/dpkg.status.1.gz 等。– steeldriver 3 小时前