有人知道如何重置 source.list 吗?

有人知道如何重置 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私人-ppa.launchpad.net/commercial-ppa-uploaders/plexmediaserver/ubuntu /etc/apt/auth.conf:machine 私人-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精确的主要#由软件中心添加;凭证存储在/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精确的主 /etc/apt/sources.list.d/agmenor-discvur-precise.list.save:deb-src http://ppa.launchpad.net/agmenor/discvur/ubuntu精确的主 /etc/apt/sources.list.d/hakermania-format-junkie-precise.list.save:deb-src http://ppa.launchpad.net/hakermania/format-junkie/ubuntu精确的主 /etc/apt/sources.list.d/achadwick-mypaint-testing-precise.list.save:deb http://ppa.launchpad.net/achadwick/mypaint-testing/ubuntu精确的主 /etc/apt/sources.list.d/achadwick-mypaint-testing-precise.list.save:deb-src http://ppa.launchpad.net/achadwick/mypaint-testing/ubuntu精确的主 /etc/apt/sources.list.d/fioan89-slidewall-precise.list.save:deb http://ppa.launchpad.net/fioan89/slidewall/ubuntu精确的主 /etc/apt/sources.list.d/nginx-stable-precise.list.save:deb-src http://ppa.launchpad.net/nginx/stable/ubuntu精确的主 /etc/apt/sources.list.d/private-ppa.launchpad.net_commercial-ppa-uploaders_plexmediaserver_ubuntu.list.save:deb https://private-ppa.launchpad.net/commercial-ppa-uploaders/plexmediaserver/ubuntu 精确的主要#由软件中心添加;凭证存储在/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 精确的主要#由软件中心添加;凭证存储在/etc/apt/auth.conf /etc/apt/sources.list.d/folke-schwinning-personal-precise.list.save:deb中 http://ppa.launchpad.net/folke-schwinning/personal/ubuntu精确的主 /etc/apt/sources.list.d/brianrobles204-xkcd-browser-precise.list.save:deb-src http://ppa.launchpad.net/brianrobles204/xkcd-browser/ubuntu精确的主 /etc/apt/sources.list.d/noneed4anick-cuttlefish-precise.list.save:deb-src http://ppa.launchpad.net/noneed4anick/cuttlefish/ubuntu精确的主 /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 精确的主要#由软件中心添加;凭据存储在/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 精确的主 /etc/apt/sources.list.d/webapps-preview-precise.list.save:deb-src http://ppa.launchpad.net/webapps/preview/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 精确的主要#由软件中心添加;凭证存储在/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精确的主 /etc/apt/sources.list.d/webupd8team-y-ppa-manager-precise.list.save:deb http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu精确的主 /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 精确的主要#由软件中心添加;凭证存储在/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精确的主 /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 精确的主要#由软件中心添加;凭证存储在/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

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

  1. 打开 DASH 并输入,software你会看到一个选项,上面写着software sources

    在此处输入图片描述

    您将看到它有多个选项卡,每个选项卡加起来等于您的存储库行数sources.list,例如,您有

    在此处输入图片描述

    在此处输入图片描述

    还有

    在此处输入图片描述

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

  2. 另一种方法是直接编辑文件本身。打开终端并:

    sudo nano /etc/apt/sources.list

    并删除不需要的部分。#在行前添加一个来注释掉它。这比删除它要好,万一你犯了错误,你还可以返回。

每次更改此项时,请务必执行sudo apt-get update以验证一切正常。apt-get如果其中一个存储库出现问题(拼写错误、符号错误等),将会通知您。

相关内容