无法删除 ppa

无法删除 ppa

我最近将 stormcloud ppa ( ppa:jolicloud-team/ppa) 添加到我的软件源中 - 但它恰好是一个空源,每当我尝试安装 stormcloud 或更新我的系统时,它都会出错。例如:

W: Failed to fetch http://ppa.launchpad.net/cooperjona/stormcloud/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/cooperjona/stormcloud/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.

我无法删除此 ppa - 我无法在 /etc/apt/sources.list 中找到它,也无法从命令行远程控制它。例如,当我执行以下操作时:

sudo add-apt-repository --remove ppa:cooperjona/stormcloud

它出现以下错误。

Cannot access PPA (https://launchpad.net/api/1.0/~cooperjona/+archive/stormcloud) to get PPA information, please check your internet connection.

当我使用 ppa-purge 时,我得到了以下结果 - 因此我中止了。

$ sudo ppa-purge ppa:jolicloud-team/ppa

Updating packages lists
W: Failed to fetch http://ppa.launchpad.net/cooperjona/stormcloud/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/cooperjona/stormcloud/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Warning:  apt-get update failed for some reason
PPA to be removed: jolicloud-team ppa
comm: file 2 is not in sorted order
Package revert list generated:
 awesome/precise jolicloud-daemon/precise jolicloud-desktop-environment/precise 
jupiter/precise lua-lgi/precise nickel-browser/precise 
nickel-browser-l10n/precise nickel-codecs-ffmpeg-extra/precise 
nickel-codecs-ffmpeg-nonfree/precise xsettingsd/precise

Disabling jolicloud-team PPA from 
/etc/apt/sources.list.d/jolicloud-team-ppa-precise.list
Updating packages lists
W: Failed to fetch http://ppa.launchpad.net/cooperjona/stormcloud/ubuntu/dists/precise/main/binary-amd64/Packages  404  Not Found

W: Failed to fetch http://ppa.launchpad.net/cooperjona/stormcloud/ubuntu/dists/precise/main/binary-i386/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Warning:  apt-get update failed for some reason
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Release 'precise' for 'jolicloud-daemon' was not found
E: Release 'precise' for 'jolicloud-desktop-environment' was not found
E: Release 'precise' for 'jupiter' was not found
E: Release 'precise' for 'nickel-browser' was not found
E: Release 'precise' for 'nickel-browser-l10n' was not found
E: Release 'precise' for 'nickel-codecs-ffmpeg-extra' was not found
E: Release 'precise' for 'nickel-codecs-ffmpeg-nonfree' was not found
E: Release 'precise' for 'xsettingsd' was not found
Unable to find an archive "precise" for the package "jolicloud-daemon"
Unable to find an archive "precise" for the package "jolicloud-desktop-environment"
Unable to find an archive "precise" for the package "jupiter"
Unable to find an archive "precise" for the package "nickel-browser"
Unable to find an archive "precise" for the package "nickel-browser-l10n"
Unable to find an archive "precise" for the package "nickel-codecs-ffmpeg-extra"
Unable to find an archive "precise" for the package "nickel-codecs-ffmpeg-nonfree"
Unable to find an archive "precise" for the package "xsettingsd"
Unable to find an archive "precise" for the package "jolicloud-daemon"
Unable to find an archive "precise" for the package "jolicloud-desktop-environment"
Unable to find an archive "precise" for the package "jupiter"
Unable to find an archive "precise" for the package "nickel-browser"
Unable to find an archive "precise" for the package "nickel-browser-l10n"
Unable to find an archive "precise" for the package "nickel-codecs-ffmpeg-extra"
Unable to find an archive "precise" for the package "nickel-codecs-ffmpeg-nonfree"
Unable to find an archive "precise" for the package "xsettingsd"
The following packages will be DOWNGRADED:
  awesome 
The following NEW packages will be installed:
  libev4{a} 
The following packages will be REMOVED:
  feh{u} giblib1{u} libjpeg-progs{u} libjpeg-turbo-progs{u} lua-lgi{u} 
0 packages upgraded, 1 newly installed, 1 downgraded, 5 to remove and 10 not upgraded.
Need to get 873 kB of archives. After unpacking 575 kB will be freed.
The following packages have unmet dependencies:
 jolicloud-desktop-environment : Depends: awesome (>= 3.5) but 3.4.11-1ubuntu1 is to be installed.
The following actions will resolve these dependencies:

     Remove the following packages: 
1)     jolicloud-desktop-environment



Accept this solution? [Y/n/q/?] n
The following actions will resolve these dependencies:

     Keep the following packages at their current version:                  
1)     awesome [3.5-rc1-8~precise1 (now)]                                   
2)     feh [2.2-1 (now, precise)]                                           
3)     giblib1 [1.2.4-8 (now, precise)]                                     
4)     libjpeg-turbo-progs [1.1.90+svn733-0ubuntu4.1 (now, precise-updates)]
5)     lua-lgi [0.6.2-1ubuntu1~precise1 (now)]                              



Accept this solution? [Y/n/q/?] q

它不会损坏我的电脑或其他东西,但根据我过去的经验,我已经吸取了有关错误 ppa 的一两个教训,并且我不希望我的软件包完全崩溃。我该怎么办?

(我使用的是 Ubuntu 12.04 LTS)

答案1

我相信如果您在终端中输入以下命令,您就可以从那里删除它们。

software-properties-gtk --open-tab=2

或系统设置>软件和更新。接下来单击第二个选项卡以转到其他软件。

选择您不想检查的源(空的)并关闭勾选或将其全部删除。

相关内容