@H_404_0@问题:
@H_404_0@ 在通过apt-get安装内存测试工具lmbench的时候,出现如下错误:
@H_404_0@apt-get install lmbench
@H_404_0@Reading package lists... Done
@H_404_0@Building dependency tree
@H_404_0@Reading state information... Done
@H_404_0@You might want to run 'apt-get -f install' to correct these:
@H_404_0@The following packages have unmet dependencies:
@H_404_0@mpt-status : Depends: daemon but it is not going to be
@H_404_0@
@H_404_0@installed
@H_404_0@ Depends: mailx
@H_404_0@E: Unmet dependencies. Try 'apt-get -f install' with no packages
@H_404_0@
@H_404_0@(or specify a solution).
@H_404_0@
@H_404_0@诊断:
@H_404_0@ 通过资料查找,发现可能是安装的其他软件包不兼容导致了,同时根据提示需要执行“apt-get -f install ”来卸载之前的冲突包。
@H_404_0@还有个命令是:aptitude -f install
@H_404_0@
@H_404_0@解决:
@H_404_0@ 执行如下命令:
@H_404_0@aptitude -f install
@H_404_0@No packages will be installed,upgraded,or removed.
@H_404_0@0 packages upgraded,0 newly installed,0 to remove and 1 not
@H_404_0@
@H_404_0@upgraded.
@H_404_0@Need to get 0 B of archives. After unpacking 0 B will be used.
@H_404_0@The following packages have unmet dependencies:
@H_404_0@mpt-status : Depends: daemon but it is not going to be
@H_404_0@
@H_404_0@installed.
@H_404_0@ Depends: mailx which is a virtual package.
@H_404_0@The following actions will resolve these dependencies:
@H_404_0@
@H_404_0@ Remove the following packages:
@H_404_0@1) mpt-status
@H_404_0@
@H_404_0@
@H_404_0@
@H_404_0@Accept this solution? [Y/n/q/?] y
@H_404_0@Invalid response; please enter one of the following commands:
@H_404_0@ y: accept the proposed changes
@H_404_0@ n: reject the proposed changes and search for another solution
@H_404_0@ q: give up and quit the program
@H_404_0@ .: move to the next solution
@H_404_0@,: move to the prevIoUs solution
@H_404_0@ o: toggle between the contents of the solution and an
@H_404_0@
@H_404_0@explanation of the solution
@H_404_0@ e: examine the solution in the visual user interface
@H_404_0@ x: abort automatic dependency resolution; resolve dependencies
@H_404_0@
@H_404_0@by hand instead
@H_404_0@ r (ID|pkg ver) ...: reject the given package versions; don't
@H_404_0@
@H_404_0@display any solutions in which they occur. Enter UNINST instead
@H_404_0@
@H_404_0@of a version to reject
@H_404_0@ removing the package. ID is the integer
@H_404_0@
@H_404_0@printed to the left of the action.
@H_404_0@ a (ID|pkg ver) ...: accept the given package versions; display
@H_404_0@
@H_404_0@only solutions in which they occur. Enter UNINST instead of a
@H_404_0@
@H_404_0@version to accept
@H_404_0@ removing the package. ID is the integer
@H_404_0@
@H_404_0@printed to the left of the action.
@H_404_0@ <ID>: display information about the action labeled ID from the
@H_404_0@
@H_404_0@solution. The label is the integer printed to the left of the
@H_404_0@
@H_404_0@action.
@H_404_0@ <ACTION> pkg... : adjust the state of the listed packages,
@H_404_0@
@H_404_0@where ACTION is one of:
@H_404_0@ '+' to install packages
@H_404_0@ '+M' to install packages and immediately flag them as
@H_404_0@
@H_404_0@automatically installed
@H_404_0@ '-' to remove packages
@H_404_0@ '_' to purge packages
@H_404_0@ '=' to place packages on hold
@H_404_0@ ':' to keep packages in their current state without placing
@H_404_0@
@H_404_0@them on hold
@H_404_0@ '&M' to mark packages as automatically installed
@H_404_0@ '&m' to mark packages as manually installed
@H_404_0@Accept this solution? [Y/n/q/?] y
@H_404_0@The following packages will be REMOVED:
@H_404_0@ mpt-status{a}
@H_404_0@0 packages upgraded,1 to remove and 0 not
@H_404_0@
@H_404_0@upgraded.
@H_404_0@Need to get 0 B of archives. After unpacking 89.1 kB will be
@H_404_0@
@H_404_0@freed.
@H_404_0@Do you want to continue? [Y/n/?] y
@H_404_0@dpkg: warning: parsing file '/var/lib/dpkg/status' near line
@H_404_0@
@H_404_0@13600 package 'storcli':
@H_404_0@missing maintainer
@H_404_0@(Reading database ... 97017 files and directories currently
@H_404_0@
@H_404_0@installed.)
@H_404_0@Removing mpt-status (1.2.0-4.2.hwraid1) ...
@H_404_0@Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
@H_404_0@
@H_404_0@Current status: 0 broken [-1],0 updates [-1].
@H_404_0@
@H_404_0@再来执行apt-get install lmbench即可。 原文链接:https://www.f2er.com/ubuntu/355543.html