12.04——更新管理器问题

12.04——更新管理器问题

打开更新管理器时,我收到以下消息 -

无法初始化包信息

E:Type 'b-src' is not a known on line 2 in source list /etc/apt/sources.list.d/whatsapp-purple-ppa-precise.list,

E:The list of sources could not be read, E:The package lists or status file could not be parsed or opened.

请帮忙。


ls /etc/apt/sources.list.d/ 的输出

cdemu-ppa-precise.list.bak
cdemu-ppa-precise.list.save
getdeb.list
getdeb.list.save
google-chrome.list
google-chrome.list.save
kalakris-okular-precise.list
kalakris-okular-precise.list.save
kubuntu-ppa-backports-precise.list
kubuntu-ppa-backports-precise.list.save
linrunner-tlp-precise.list
linrunner-tlp-precise.list.save
nilarimogard-webupd8-precise.list
nilarimogard-webupd8-precise.list.save
nvbn-rm-ppa-precise.list
nvbn-rm-ppa-precise.list.save
opera.list
opera.list.save
precise-dell.list
precise-dell.list.save
private-ppa.launchpad.net_commercial-ppa-uploaders_fragment_ubuntu.list
private-ppa.launchpad.net_commercial-ppa-uploaders_fragment_ubuntu.list.save
private-ppa.launchpad.net_commercial-ppa-uploaders_steam_ubuntu.list
private-ppa.launchpad.net_commercial-ppa-uploaders_steam_ubuntu.list.save
scopes-packagers-ppa-precise.list
scopes-packagers-ppa-precise.list.save
skunk-pepper-flash-precise.list
skunk-pepper-flash-precise.list.save
springseed.list
springseed.list.save
steam.list
steam.list.save
teejee2008-ppa-precise.list
teejee2008-ppa-precise.list.save
ubuntu-extras.list
ubuntu-extras.list.save
ubuntu-wine-ppa-precise.list
ubuntu-wine-ppa-precise.list.save
videolan-stable-daily-precise.list
videolan-stable-daily-precise.list.save
webupd8team-jupiter-precise.list
webupd8team-jupiter-precise.list.save
webupd8team-tor-browser-precise.list
webupd8team-tor-browser-precise.list.save
webupd8team-y-ppa-manager-precise.list
webupd8team-y-ppa-manager-precise.list.save
whatsapp-purple-ppa-precise.list
whatsapp-purple-ppa-precise.list.save

答案1

whatsapp purleppa 中的问题,删除它就没事了。

sudo rm -r /etc/apt/sources.list.d/whatsapp-purple-ppa-precise.list
sudo rm -r /etc/apt/sources.list.d/whatsapp-purple-ppa-precise.list.save

然后运行:

sudo apt-get update

答案2

您可以在终端中尝试输入:

rm -r /etc/atp/sources.d /etc/atp/sources.list

这样也许能很好地发挥作用。

相关内容