我正在尝试在我的 pandaboard 上安装适用于 ubuntu 的 OMAP4 附加组件。出于某种原因,一些软件包似乎无法相互兼容。
这是我目前所做的:
- 安装在 Ubuntu 11.10 的 SD 卡上
- 打开 Pandaboard 电源并让其完成初始安装
- 执行了“apt-get update”和“apt-get upgrade”来安装更新
到目前为止,一切都很顺利,我对我的 Pandaboard 很满意,但是后来我犯了输入以下内容的错误:
apt-get 安装 ubuntu-imap4-extras
一开始,一切似乎都正常,它开始下载和安装。但过了一会儿,它就崩溃了。我再次尝试,但它给了我这个:
Reading package lists... Done
Building dependency tree
Reading state information... Done
ubuntu-omap4-extras is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
gstreamer0.10-openmax : Depends: gstreamer0.10-plugins-bad but it is not going to be installed
gstreamer0.10-plugin-ducati : Depends: gstreamer0.10-plugins-bad but it is not going to be installed
ubuntu-omap4-extras-multimedia : Depends: gstreamer0.10-plugins-bad (>= 0.10.22-2ubuntu4+ti1.5) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
所以我尝试了建议:apt-get -f install:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following extra packages will be installed:
gstreamer0.10-plugins-bad
The following NEW packages will be installed:
gstreamer0.10-plugins-bad
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
88 not fully installed or removed.
Need to get 0 B/1,794 kB of archives.
After this operation, 4,571 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
(Reading database ... 143575 files and directories currently installed.)
Unpacking gstreamer0.10-plugins-bad (from .../gstreamer0.10-plugins bad_0.10.22-2ubuntu4+ti1.5.4.8+1_armel.deb) ...
dpkg: error processing /var/cache/apt/archives/gstreamer0.10-plugins-bad_0.10.22-2ubuntu4+ti1.5.4.8+1_armel.deb (--unpack):
trying to overwrite '/usr/lib/libgstbasecamerabinsrc-0.10.so.0.0.0', which is also in package gstreamer0.10-plugins-good 0.10.30-1ubuntu7.1
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
Errors were encountered while processing:
/var/cache/apt/archives/gstreamer0.10-plugins-bad_0.10.22-2ubuntu4+ti1.5.4.8+1_armel.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
似乎两个包(plugins-good 和 plugins-bad)正在争夺同一个库。
有什么办法可以修复这个问题吗?
答案1
我解决这个问题的步骤:
dpkg -r --force all gstreamer0.10-plugins-good
apt-get -f install
apt-get install ubuntu-omap4-extras
先强制删除好的包!
答案2
尝试此方法来清理并更新你的系统
sudo apt-get autoremove
sudo apt-get clean
sudo apt-get autoclean
sudo apt-get update
sudo apt-get upgrade