我是 ubuntu 新手,您能给我一个命令行来禁用(删除)软件中心和突触管理器中的所有多元宇宙(非免费)项目吗?谢谢 dewitt
答案1
在 Gnu/Linux 中:
Windows cmd-line = Terminal
要打开终端,请按(Ctrl+Alt+T)
要禁用所有多元宇宙、非自由软件:
运行
sudo -i
nano /etc/apt/sources.list
在打开的文件中,注释掉以下行以禁用前缀#:
deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
deb http://archive.canonical.com/ubuntu trusty partner
deb-src http://archive.canonical.com/ubuntu trusty partner
deb http://us.archive.ubuntu.com/ubuntu/ trusty-proposed universe multiverse restricted main
让他们安好:
#deb http://us.archive.ubuntu.com/ubuntu/ trusty universe
#deb-src http://us.archive.ubuntu.com/ubuntu/ trusty universe
#deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
#deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates universe
#deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
#deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse
#deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
#deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
#deb http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
#deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
#deb http://security.ubuntu.com/ubuntu trusty-security universe
#deb-src http://security.ubuntu.com/ubuntu trusty-security universe
#deb http://security.ubuntu.com/ubuntu trusty-security multiverse
#deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
#deb http://archive.canonical.com/ubuntu trusty partner
#deb-src http://archive.canonical.com/ubuntu trusty partner
#deb http://us.archive.ubuntu.com/ubuntu/ trusty-proposed universe multiverse restricted main
若要删除,请删除该行。
Ctrl+ O,保存文件。Ctrl+ X,关闭 nano。