技巧:解决安装依赖问题

有时候,当我们在 Ubuntu 中直接安装已下载的 deb 文件时,会遇到恼人的依赖问题,以下是我的解决方案。

今天在安装 fala 时,又遇到了出错提示: Selecting previously deselected package fala. (Reading database ... 81909 files and directories currently installed.) Unpacking fala (from fala0.1-1i386.deb) ... dpkg: dependency problems prevent configuration of fala: fala depends on festival; however: Package festival is not installed. dpkg: error processing fala (--install): dependency problems - leaving unconfigured Errors were encountered while processing: fala

根据该提示分析,显然出在依赖问题上。不急,我们使用 Synaptic 来搞定它。通过在终端输入 sudo synaptic 启动后,立即看到了错误报告。

Broken

Select

好,现在我们就来解决依赖问题。点击“编辑 -> 修复损坏的包”菜单命令,我们看到 fala 左边的方框变绿了。继续执行“编辑 -> 应用标记的更改”,弹出下图所示对话框。

Setup

单击“应用”按钮,很快便安装好了。希望此技巧对你有所帮助。

Read More:

  • » No related posts

3 Comments

  1. 1 幽火 Commented @ 2006-09-09 17:43Reply to this comment

    我想问个问题,今天下午我刚安装好了ubuntu,我以前没有用过这个linux版本,他们都说不错,然后我就用了,我在安装gngeo这个游戏模拟器时出了点麻烦,出现如下提示: checking for sdl-config... no configure: error: can't find sdl-config on your system 请问这个是不是有什么包需要安装阿?如果用apt命令应该怎么安装? 谢谢拉。

  2. 2 Toy Commented @ 2006-09-09 19:53Reply to this comment

    sudo apt-get install gngeo

  3. 3 幽火 Commented @ 2006-09-09 23:18Reply to this comment

    谢谢toy大哥。嘎嘎。搞定了。