有谁知道如何重置source.list?

可能重复:
如何恢复默认存储库?

无论如何重置我的source.list? 我尝试按照这个论坛http://ubuntuforums.org/showthread.php?t=1219528的技巧,但没有帮助..我想要的是,重新安装ubuntu 1204源列表。 无需通过live cd重新安装ubuntu。 并使我的操作系统像新鲜安装..任何人都可以帮助我?

谢谢

在此处输入图像描述

在此处输入图像描述

santos @ santos:〜$ sudo su [sudo] santos密码:root @ santos:/ home / santos#grep -r ppa / etc / apt /etc/apt/auth.conf:machine private-ppa.launchpad.net/ commercial-ppa-uploaders / fullcircle-issue-59 / ubuntu /etc/apt/auth.conf:machine private-ppa.launchpad.net/commercial-ppa-uploaders/tiberiumalliances/ubuntu /etc/apt/auth.conf:machine private-ppa.launchpad.net/commercial-ppa-uploaders/lordofultima/ubuntu /etc/apt/auth.conf:machine private-ppa.launchpad.net/commercial-ppa-uploaders/intellij-idea-ce/ubuntu / etc /apt/auth.conf:machine private-ppa.launchpad.net/commercial-ppa-uploaders/plexmediaserver/ubuntu /etc/apt/auth.conf:machine private-ppa.launchpad.net/commercial-ppa-uploaders/tiberiumalliances / ubuntu /etc/apt/sources.list.d/private-ppa.launchpad.net_commercial-ppa-uploaders_fullcircle-issue-59_ubuntu.list.save:deb https://private-ppa.launchpad.net/commercial-ppa- uploaders / fullcircle-issue-59 / ubuntu精简主要#Added by software-center; 存储在/etc/apt/auth.conf /etc/apt/sources.list.d/skype-wrapper-ppa-precise.list.save:deb-src http://ppa.launchpad.net/skype-wrapper中的凭证/ ppa / ubuntu exact main /etc/apt/sources.list.d/agmenor-discvur-precise.list.save:deb-src http://ppa.launchpad.net/agmenor/discvur/ubuntu exact main / etc / apt / sources.list.d / hakermania-format-junkie-precise.list.save:deb-src http://ppa.launchpad.net/hakermania/format-junkie/ubuntu exact main /etc/apt/sources.list .d / achadwick-mypaint-testing-precise.list.save:deb http://ppa.launchpad.net/achadwick/mypaint-testing/ubuntu precise main /etc/apt/sources.list.d/achadwick-mypaint- testing-precise.list.save:deb-src http://ppa.launchpad.net/achadwick/mypaint-testing/ubuntu precise main /etc/apt/sources.list.d/fioan89-slidewall-precise.list.save :deb http://ppa.launchpad.net/fioan89/slidewall/ubuntu exact main /etc/apt/sources.list.d/nginx-stable-precise.list.save:deb-src http://ppa.launchpad .net / nginx / stable / ubuntu精确主要/etc/apt/sources.l ist.d / private-ppa.launchpad.net_commercial-ppa-uploaders_plexmediaserver_ubuntu.list.save:deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/plexmediaserver/ubuntu exact main #Added by software-center ; 存储在/etc/apt/auth.conf /etc/apt/sources.list.d/private-ppa.launchpad.net_commercial-ppa-uploaders_tiberiumalliances_ubuntu.list.save:deb https://private-ppa.launchpad.net中的凭证/ commercial-ppa-uploaders / tiberiumalliances / ubuntu exact main #Added by software-center; 存储在/etc/apt/auth.conf /etc/apt/sources.list.d/folke-schwinning-personal-precise.list.save:deb http://ppa.launchpad.net/folke-schwinning/personal中的凭证/ ubuntu exact main /etc/apt/sources.list.d/brianrobles204-xkcd-browser-precise.list.save:deb-src http://ppa.launchpad.net/brianrobles204/xkcd-browser/ubuntu exact main / etc / apt / sources.list.d / noneed4anick-cuttlefish-precise.list.save:deb-src http://ppa.launchpad.net/noneed4anick/cuttlefish/ubuntu exact main /etc/apt/sources.list.d /private-ppa.launchpad.net_commercial-ppa-uploaders_plexmediaserver_ubuntu.list:deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/plexmediaserver/ubuntu exact main #Added by software-center; 凭证存储在/etc/apt/auth.conf /etc/apt/sources.list.d/ubuntu-mozilla-daily-firefox-aurora-precise.list.save:deb-src http://ppa.launchpad.net / ubuntu-mozilla-daily / firefox-aurora / ubuntu exact main /etc/apt/sources.list.d/webapps-preview-precise.list.save:deb-src http://ppa.launchpad.net/webapps/预览/ ubuntu精确主要/etc/apt/sources.list.d/private-ppa.launchpad.net_commercial-ppa-uploaders_tiberiumalliances_ubuntu.list:deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/tiberiumalliances / ubuntu精确主要#Added由软件中心; 存储在/etc/apt/auth.conf /etc/apt/sources.list.d/myunity-ppa-precise.list.save:deb http://ppa.launchpad.net/myunity/ppa/ubuntu中的凭证/etc/apt/sources.list.d/luciomrx-switzallnew-precise.list.save:deb http://ppa.launchpad.net/luciomrx/switzallnew/ubuntu precise main /etc/apt/sources.list.d/ webupd8team-y-ppa-manager-precise.list.save:deb http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu exact main /etc/apt/sources.list.d/private-ppa .launchpad.net_commercial-ppa-uploaders_intellij-idea-ce_ubuntu.list.save:deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/intellij-idea-ce/ubuntu exact main #Added by software-中央; 凭证存储在/etc/apt/auth.conf /etc/apt/sources.list.d/george-edison55-nitroshare-precise.list.save:deb-src http://ppa.launchpad.net/george-edison55 / nitroshare / ubuntu exact main /etc/apt/sources.list.d/private-ppa.launchpad.net_commercial-ppa-uploaders_lordofultima_ubuntu.list.save:deb https://private-ppa.launchpad.net/commercial-ppa- uploaders / lordofultima / ubuntu精简主要#Added by software-center; 存储在/etc/apt/auth.conf /etc/apt/sources.list.d/achadwick-mypaint-testing-precise.list:deb http://ppa.launchpad.net/achadwick/mypaint-testing/ubuntu中的凭证精确主要/etc/apt/sources.list.d/achadwick-mypaint-testing-precise.list:deb-src http://ppa.launchpad.net/achadwick/mypaint-testing/ubuntu精确主要/ etc / apt / sources.list.d / atareao-atareao-precise.list.save:deb-src http://ppa.launchpad.net/atareao/atareao/ubuntu精确主根@ santos:/ home / santos#

那你有几种方法(我很确定这个问题是重复但我找不到):

  1. 打开DASH并键入software您将看到一个显示software sources选项

    在此处输入图像描述

    您将看到它将有几个选项卡,每个选项卡都会添加到sources.list的存储库行数量,例如,您有

    在此处输入图像描述

    在此处输入图像描述

    还有

    在此处输入图像描述

    您可以从中更改源文件中显示的任何内容。

  2. 另一个是字面编辑文件本身。 所以打开一个终端并:

    sudo nano /etc/apt/sources.list

    并编辑你不需要的东西。 在行前添加#以将其注释掉。 它比删除它更好,以防万一你犯了错误就可以回去了。

每次更改此设置时,请始终执行sudo apt-get update以validation一切正常。 如果其中一个存储库出现问题(错误拼写,错误的符号等), apt-get会通知您。