我是一名 Ubuntu 新用户。我请别人帮我安装了所有东西,包括 GIMP,但自从我上次更新后,它就消失了。
我在这个问题上找到了一些帮助,但都告诉我安装软件包,而我不知道该怎么做。
每当我尝试运行任何这些命令时,我都会收到如下响应:
N: Ignoring file 'matthaeus123-mrw-gimp-svn-oneiric.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
当我在终端中输入 GIMP 时,我得到:
The program 'gimp' is currently not installed. You can install it by typing:
sudo apt-get install gimp
所以我尝试了一下,apt-get
结果如下:
E: Invalid operation gimp
我应该重新安装整个系统吗?有人能帮忙吗?:(
更新
好的,我已删除该文件(耶!)。我收到以下错误:
Err http://ppa.launchpad.net oneiric/main Sources
404 Not Found
Err http://ppa.launchpad.net oneiric/main i386 Packages
404 Not Found
Err http://ppa.launchpad.net oneiric/main Sources
404 Not Found
Err http://ppa.launchpad.net oneiric/main i386 Packages
404 Not Found
并且
W: Failed to fetch http://ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/oneiric/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/pmcenery/ppa/ubuntu/dists/oneiric/main/binary-i386/Packages 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ripps818/wacom/ubuntu/dists/oneiric/main/source/Sources 404 Not Found
W: Failed to fetch http://ppa.launchpad.net/ripps818/wacom/ubuntu/dists/oneiric/main/binary-i386/Packages 404 Not Found
然后,当我尝试在 GIMP 上运行 apt-get 时,我得到:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
gimp : Depends: libgegl-0.0-0 (>= 0.1.3-2) but it is not going to be installed
Depends: libglib2.0-0 (>= 2.31.2) but 2.30.0-0ubuntu4 is to be installed
E: Unable to correct problems, you have held broken packages.
答案1
首先 - 让我们处理 sources.list.d 中的错误
按 Alt+F2 并运行此命令
gksudo nautilus /etc/apt/sources.list.d/
系统将要求您输入密码 - 这是您的密码。
文件管理器将在正确的位置打开,查找
matthaeus123-mrw-gimp-svn-oneiric.list.save.1
右键单击它并将其删除。
该目录中的任何文件都应该以以下格式结尾
列出或保存 – 没有其他内容。
现在做
Ctrl+Alt+T 这将打开一个终端 - 运行此命令
sudo apt-get update
这应该会更新 apt,如果您遇到更多错误,请将它们添加到问题中。
完成后,运行此程序并发布任何错误(如果发现)。
gimp
您可以使用以下方式从终端安装 gimp
sudo apt-get install gimp
或者在 Ubuntu 软件中心搜索 gimp 并从那里安装。