重置存储库的步骤:

重置存储库的步骤:

我想在我的笔记本电脑上安装 Cinnamon。我已运行安装 Cinnamon 的命令,但下载未完成。尝试更新 Ubuntu 和 Lubuntu 时也发生了同样的问题。

下面列出了拒绝的详细信息。我居住在新西兰,但不知道为什么会出现错误消息。我已将下载网站更改为“国际”,但该nz.archive.com网站不存在。

我们将非常感激您的帮助。

W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/maverick-backports/main/source/Sources  404  Not Found
W: Failed to fetch http://nz.archive.ubuntu.com/ubuntu/dists/maverick-backports/restricted/source/Sources  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
:~$ sudo apt-get install cinnamon cinnamon-session cinnamon-settings
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package cinnamon
E: Unable to locate package cinnamon-session
E: Unable to locate package cinnamon-settings

按照 Alaa 的回答后,我收到以下错误:

Err http://ppa.launchpad.net quantal/main Sources
  404  Not Found
Err http://ppa.launchpad.net quantal/main i386 Packages
  404  Not Found
W: Failed to fetch ..ppa.launchpad.net/merlwiz79/cinnamon-ppa/ubuntu/dists/quantal/main/source/Sources  404  Not Found
W: Failed to fetch....ppa.launchpad.net/merlwiz79/cinnamon-ppa/ubuntu/dists/quantal/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
sudo apt-get install cinnamon
Reading package lists... Done
Building dependency tree       
Reading state information... Done
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.
 cinnamon : Depends: libgjs0-libmozjs185-1.0 but it is not installable
            Depends: libgjs0c (>= 1.34.0) but 1.32.0-1ubuntu1 is to be installed
            Depends: cinnamon-control-center but it is not going to be installed or
                     gnome-control-center but it is not going to be installed
            Depends: gir1.2-gkbd-3.0 but it is not going to be installed
            Recommends: gnome-themes-standard but it is not going to be installed
            Recommends: nemo but it is not going to be installed
            Recommends: cinnamon-screensaver but it is not going to be installed
            Recommends: gir1.2-gjsdbus-1.0 but it is not going to be installed
E: Unable to correct problems, you have held broken packages

答案1

好吧,你实际上有两件事要担心:

  1. 您的源代码混乱,因为它们指向 Ubuntu 10.10 存储库,但由于该版本的支持已结束,因此这些存储库不再存在(这就是您收到错误的原因404 Not Found)。

  2. 做了快速搜索cinnamon包裹,它只适用于 13.04 的存储库。要在 12.04 上安装它,您需要执行一些额外步骤来获取为 12.04 提供它的 PPA(存储库)。

您应该执行以下操作:

重置存储库的步骤:

  1. cd /etc/apt && sudo cp sources.list sources.list.back1

    • 备份您当前的sources.list文件,因为我们将对其进行编辑。
  2. gksu gedit sources.list

    • 打开sources.list来编辑它。
  3. 当文本编辑器打开时,删除文件内的所有内容,然后从这里并将其粘贴到文件中。

    • 这些是适合 12.04 的存储库,使用新西兰。
  4. 保存并关闭文本编辑器。

  5. sudo apt-get update

    • 这将使用我们添加的新的、正确的源来更新您的包索引。

在 12.04 上获取和安装 cinnamon 的步骤

  1. sudo add-apt-repository -y ppa:gwendal-lebihan-dev/cinnamon-stable && sudo apt-get update

    • 这将添加包含 12.04 的 PPAcinnamon并更新软件包索引。
  2. sudo apt-get install cinnamon

    • 这应该可以成功安装cinnamon

相关内容