Repositories down

Barry Marler barry.marler at gmail.com
Sun Sep 25 11:20:13 UTC 2005


On 9/25/05, cargohook19 <ulist at gs1.ubuntuforums.org> wrote:
>
> Thanks, Tiede.
>
>
>
> But I'm a relative newbie, so could you please explain how to change
> the repositories in */etc/apt/sources.list* to one of these mirrors?
>
>
>
> For example, my */etc/apt/sources.list* now looks like:
>
>
>
> #deb cdrom:[Ubuntu 5.04 _Hoary Hedgehog_ - Release i386 (20050407)]/
> hoary main restricted
>
>
>
>
>
> ## Uncomment the following two lines to fetch updated software from the
> network
>
> deb http://us.archive.ubuntu.com/ubuntu breezy main restricted
>
> deb-src http://us.archive.ubuntu.com/ubuntu breezy main restricted
>
>
>
> ## Uncomment the following two lines to fetch major bug fix updates
> produced
>
> ## after the final release of the distribution.
>
> deb http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted
>
> deb-src http://us.archive.ubuntu.com/ubuntu breezy-updates main
> restricted
>
>
>
> ## Uncomment the following two lines to add software from the
> 'universe'
>
> ## repository.
>
> ## 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.
>
> deb http://us.archive.ubuntu.com/ubuntu breezy universe
>
> deb-src http://us.archive.ubuntu.com/ubuntu breezy universe
>
>
>
> deb http://security.ubuntu.com/ubuntu breezy-security main restricted
>
> deb-src http://security.ubuntu.com/ubuntu breezy-security main
> restricted
>
>
>
> deb http://security.ubuntu.com/ubuntu breezy-security universe
>
> deb-src http://security.ubuntu.com/ubuntu breezy-security universe
>
>
>
> deb http://archive.ubuntu.com/ubuntu breezy multiverse
>
> deb-src http://archive.ubuntu.com/ubuntu breezy multiverse
>
>
>
> ## Backports
>
> deb http://ubuntu-backports.mirrormax.net/ hoary-backports main
> universe multiverse restricted
>
> deb http://ubuntu-backports.mirrormax.net/ hoary-extras main universe
> multiverse restricted
>

Assuming you want to replace machine.something.something with
machine2.somethingelse.somethingelse:

sed -i -e 's/machine.something.something/machine2.somethingelse.somethingelse/g'
/ets/apt/sources.list

Of course, you should back up sources.list 1st.




More information about the ubuntu-users mailing list