如何配置Apt Sources.List  - 完整的新手

如何配置Apt Sources.List - 完整的新手

所以你正在玩你的Apt sources.list ,并以某种方式毁了它。 不管你多么努力,你无法得到它。 每次尝试安装软件包时,都会收到错误消息。 怎么办?

不要绝望...我一直在那里,找到一个简单的答案:Aptitude Source-O-Matic: http : //www.ubuntu-nl.org/source-o-matic/

我已经找到了完整的解决方案 - 但有人把它脱了出来,我找不到替代品。 但是,请尝试将以下内容复制到剪贴板中,然后按照以下说明进行操作。

# deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

# Line commented out by installer because it failed to verify:
# deb http://ie.archive.ubuntu.com/ubuntu/ gutsy main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://ie.archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# Line commented out by installer because it failed to verify:
# deb http://ie.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://ie.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# Line commented out by installer because it failed to verify:
# deb http://ie.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
# deb-src http://ie.archive.ubuntu.com/ubuntu/ gutsy universe
# Line commented out by installer because it failed to verify:
# deb http://ie.archive.ubuntu.com/ubuntu/ gutsy-updates universe
# Line commented out by installer because it failed to verify:
# deb-src http://ie.archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# Line commented out by installer because it failed to verify:
# deb http://ie.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
# deb-src http://ie.archive.ubuntu.com/ubuntu/ gutsy multiverse
# Line commented out by installer because it failed to verify:
# deb http://ie.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
# Line commented out by installer because it failed to verify:
# deb-src http://ie.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://ie.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://ie.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu hardy partner
deb-src http://archive.canonical.com/ubuntu hardy partner

# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu gutsy-security main restricted
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu gutsy-security universe
# Line commented out by installer because it failed to verify:
# deb-src http://security.ubuntu.com/ubuntu gutsy-security universe
# Line commented out by installer because it failed to verify:
# deb http://security.ubuntu.com/ubuntu gutsy-security multiverse
# Line commented out by installer because it failed to verify:
deb http://archive.ubuntu.com/ubuntu/ hardy main universe restricted multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates universe main restricted multiverse
deb http://security.ubuntu.com/ubuntu/ hardy-security universe main restricted multiverse
# deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse
# deb http://download.tuxfamily.org/syzygy42 gutsy avant-window-navigator
# deb-src http://download.tuxfamily.org/syzygy42 gutsy avant-window-navigator
# deb http://archive.ubuntustudio.org/ubuntustudio edgy main

我要做的就是去那里,填写三个框,并为你创建一个新的sources.list。 这是如何使用它。

将新的 sources.list复制到剪贴板。

备份您当前的sources.list,新建一个并开始编辑。

sudo mv /etc/apt/sources.list  /etc/apt/sources.list.old 
sudo touch /etc/apt/sources.list
sudo vim /etc/apt/sources.list

(用于插入)。

右键单击鼠标按钮,并显示剪贴板的内容。

[ESC] wq保存您的更改。

之后更新您的资料:

sudo apt-get update

希望所有人都会顺利进行。

当然,您可以随时将新的sources.list和ftp,ssh,scp ...下载到您的盒子,但有时Windows框中的SSH shell是我们必须使用的。

赞(52) 打赏
未经允许不得转载:优客志 » 系统运维
分享到:

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏