yasharne
Posts: 41
Joined: Sat Dec 20, 2014 5:38 pm

change package managers download server

Tue Apr 21, 2015 4:48 pm

Hi,
I can`t install packages using apt-get, it stuck at waiting for headers, then I get failed to fetch... . I tried another internet connection but problem still exists, I can open webpages with no problem, what is the problem? can I solve it by changing download server? How?
I`m using rasbian on RPi2
Thanks

User avatar
DougieLawson
Posts: 40833
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: change package managers download server

Tue Apr 21, 2015 4:54 pm

You can hard code a mirror name in /etc/apt/sources.list

The Raspbian mirrors are listed here: http://raspbian.org/RaspbianMirrors
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

yasharne
Posts: 41
Joined: Sat Dec 20, 2014 5:38 pm

Re: change package managers download server

Tue Apr 21, 2015 6:06 pm

DougieLawson wrote:You can hard code a mirror name in /etc/apt/sources.list

The Raspbian mirrors are listed here: http://raspbian.org/RaspbianMirrors
I get this error:
W: GPG error: http://mirror.ox.ac.uk wheezy Release: The following signatures were invalid:...

User avatar
DougieLawson
Posts: 40833
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: change package managers download server

Tue Apr 21, 2015 6:12 pm

Try http://mirror.mythic-beasts.com/raspbian/raspbian/ that one appears to be alive.
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

yasharne
Posts: 41
Joined: Sat Dec 20, 2014 5:38 pm

Re: change package managers download server

Tue Apr 21, 2015 6:20 pm

DougieLawson wrote:Try http://mirror.mythic-beasts.com/raspbian/raspbian/ that one appears to be alive.
Thanks, download speed is improved, but when I rum apt-get update, Still get the error above

User avatar
DougieLawson
Posts: 40833
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: change package managers download server

Tue Apr 21, 2015 7:36 pm

Can you ping that address? Can you wget that URL?

ping -c3 mirror.mythic-beasts.com
wget http://mirror.mythic-beasts.com/raspbian/raspbian/
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

yasharne
Posts: 41
Joined: Sat Dec 20, 2014 5:38 pm

Re: change package managers download server

Wed Apr 22, 2015 6:56 pm

DougieLawson wrote:Can you ping that address? Can you wget that URL?

ping -c3 mirror.mythic-beasts.com
wget http://mirror.mythic-beasts.com/raspbian/raspbian/
yes, they both works

User avatar
DougieLawson
Posts: 40833
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: change package managers download server

Wed Apr 22, 2015 8:13 pm

Try editing sudo nano /etc/apt/sources.list

Code: Select all

deb http://mirror.mythic-beasts.com/raspbian/raspbian/ wheezy main contrib non-free rpi
Then run sudo apt-get update && sudo apt-get upgrade
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

yasharne
Posts: 41
Joined: Sat Dec 20, 2014 5:38 pm

Re: change package managers download server

Thu Apr 23, 2015 7:01 pm

DougieLawson wrote:Try editing sudo nano /etc/apt/sources.list

Code: Select all

deb http://mirror.mythic-beasts.com/raspbian/raspbian/ wheezy main contrib non-free rpi
Then run sudo apt-get update && sudo apt-get upgrade
It is working now, thanks

User avatar
DougieLawson
Posts: 40833
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: change package managers download server

Thu Apr 23, 2015 10:42 pm

Assuming the failure was a transient error you should change it back now.
Any language using left-hand whitespace for syntax is ridiculous

Any DMs sent on Twitter will be answered next month.
Fake doctors - are all on my foes list.

Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Return to “Raspberry Pi OS”