PDA

View Full Version : [ubuntu] 400 bad request



Golivier
February 7th, 2009, 01:46 PM
Hi,

Since i've moved to france i can't get any updates or install any programs because i always get an "400 Bad Request". Does anyone know what could have caused this? or how i can solve this? Does it have anything to do with my moving to france?

Thanks!
Olivier

Partyboi2
February 7th, 2009, 01:48 PM
Have you tried going to Software Sources (System>Admin>Software Sources) and on the first tab changed your download server?

Golivier
February 7th, 2009, 04:29 PM
Hi,
I just tried your suggestion, but every time i click "select best server" he sends me to another county: first i got the hungarian server and next the servian, agreed, i'm going somewhere, but i still get the same error message

Ophalen van http://ppa.launchpad.net/awn-testing/ubuntu/dists/hardy/main/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://ppa.launchpad.net/awn-testing/ubuntu/dists/hardy/main/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid/main/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid/restricted/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid/main/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid/restricted/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid/universe/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid/universe/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid/multiverse/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid/multiverse/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-updates/main/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-updates/restricted/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-updates/main/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-updates/restricted/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-updates/universe/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-updates/universe/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-updates/multiverse/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-updates/multiverse/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-security/main/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-security/restricted/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-security/main/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-security/restricted/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-security/universe/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-security/universe/source/Sources.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-security/multiverse/binary-i386/Packages.gz 400 Bad Request is mislukt
Ophalen van http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-security/multiverse/source/Sources.gz 400 Bad Request is mislukt

And then it says it will use the old files if new ones are unavailable
Any more advice?

Thanks in advance!

forger
February 7th, 2009, 06:20 PM
Something is probably blocking your connection.
Go (with your browser) at:
http://rs.archive.ubuntu.com/ubuntu/dists/intrepid-security/restricted/binary-i386/Packages.gz

Do you get to download a file Packages.gz or do you get an error?

Also, try this (to fix the PPA links and get its gpg keys):
http://ubuntuforums.org/showthread.php?t=1056099

Lastly, can you post the whole output of these commands:

ls -l /etc/apt/sources.list*
cat /etc/apt/sources.list
sudo apt-get update
apt-config dump

bettlebrox
February 7th, 2009, 07:20 PM
Are you behind a proxy server?

emigrant
December 14th, 2009, 06:43 AM
Also, try this (to fix the PPA links and get its gpg keys):
http://ubuntuforums.org/showthread.php?t=1056099

Lastly, can you post the whole output of these commands:

ls -l /etc/apt/sources.list*
cat /etc/apt/sources.list
sudo apt-get update
apt-config dump

having the same problem as OP. here is the output for the above request:


$ ls -l /etc/apt/sources.list*
-rw-r--r-- 1 root root 3085 2009-12-13 19:12 /etc/apt/sources.list
-rw-r--r-- 1 root root 3084 2009-12-13 18:43 /etc/apt/sources.list~
-rw-r--r-- 1 root root 3120 2009-12-13 18:43 /etc/apt/sources.list.save

/etc/apt/sources.list.d:
total 0
emigrant@emigrant-desktop:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090420.1)]/ jaunty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted
deb-src http://archive.ubuntu.com/ubuntu/ jaunty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://archive.ubuntu.com/ubuntu/ jaunty universe
deb-src http://archive.ubuntu.com/ubuntu/ jaunty universe
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-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.
deb http://archive.ubuntu.com/ubuntu/ jaunty multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-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://lk.archive.ubuntu.com/ubuntu/ jaunty-backports main restricted universe multiverse
# deb-src http://lk.archive.ubuntu.com/ubuntu/ jaunty-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 jaunty partner
# deb-src http://archive.canonical.com/ubuntu jaunty partner

deb http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted
deb http://archive.ubuntu.com/ubuntu/ jaunty-security universe
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security universe
deb http://archive.ubuntu.com/ubuntu/ jaunty-security multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jaunty-security multiverse

#tor
#deb http://deb.torproject.org/torproject.org jaunty main

# Remastersys
deb http://www.geekconnection.org/remastersys/repository ubuntu/


emigrant@emigrant-desktop:~$ sudo apt-get update
Ign http://www.geekconnection.org ubuntu/ Release.gpg
Ign http://archive.ubuntu.com jaunty Release.gpg
Ign http://www.geekconnection.org ubuntu/ Translation-en_US
Ign http://archive.ubuntu.com jaunty/main Translation-en_US
Ign http://www.geekconnection.org ubuntu/ Release
Ign http://archive.ubuntu.com jaunty/restricted Translation-en_US
Ign http://www.geekconnection.org ubuntu/ Packages
Ign http://archive.ubuntu.com jaunty/universe Translation-en_US
Ign http://www.geekconnection.org ubuntu/ Packages
Ign http://archive.ubuntu.com jaunty/multiverse Translation-en_US
Err http://www.geekconnection.org ubuntu/ Packages
400 Bad Request
Ign http://archive.ubuntu.com jaunty-updates Release.gpg
Ign http://archive.ubuntu.com jaunty-updates/main Translation-en_US
Ign http://archive.ubuntu.com jaunty-updates/restricted Translation-en_US
Ign http://archive.ubuntu.com jaunty-updates/universe Translation-en_US
Ign http://archive.ubuntu.com jaunty-updates/multiverse Translation-en_US
Ign http://archive.ubuntu.com jaunty-security Release.gpg
Ign http://archive.ubuntu.com jaunty-security/main Translation-en_US
Ign http://archive.ubuntu.com jaunty-security/restricted Translation-en_US
Ign http://archive.ubuntu.com jaunty-security/universe Translation-en_US
Ign http://archive.ubuntu.com jaunty-security/multiverse Translation-en_US
Ign http://archive.ubuntu.com jaunty Release
Ign http://archive.ubuntu.com jaunty-updates Release
Ign http://archive.ubuntu.com jaunty-security Release
Ign http://archive.ubuntu.com jaunty/main Packages
Ign http://archive.ubuntu.com jaunty/restricted Packages
Ign http://archive.ubuntu.com jaunty/main Sources
Ign http://archive.ubuntu.com jaunty/restricted Sources
Ign http://archive.ubuntu.com jaunty/universe Packages
Ign http://archive.ubuntu.com jaunty/universe Sources
Ign http://archive.ubuntu.com jaunty/multiverse Packages
Ign http://archive.ubuntu.com jaunty/multiverse Sources
Ign http://archive.ubuntu.com jaunty-updates/main Packages
Ign http://archive.ubuntu.com jaunty-updates/restricted Packages
Ign http://archive.ubuntu.com jaunty-updates/main Sources
Ign http://archive.ubuntu.com jaunty-updates/restricted Sources
Ign http://archive.ubuntu.com jaunty-updates/universe Packages
Ign http://archive.ubuntu.com jaunty-updates/universe Sources
Ign http://archive.ubuntu.com jaunty-updates/multiverse Packages
Ign http://archive.ubuntu.com jaunty-updates/multiverse Sources
Ign http://archive.ubuntu.com jaunty-security/main Packages
Ign http://archive.ubuntu.com jaunty-security/restricted Packages
Ign http://archive.ubuntu.com jaunty-security/main Sources
Ign http://archive.ubuntu.com jaunty-security/restricted Sources
Ign http://archive.ubuntu.com jaunty-security/universe Packages
Ign http://archive.ubuntu.com jaunty-security/universe Sources
Ign http://archive.ubuntu.com jaunty-security/multiverse Packages
Ign http://archive.ubuntu.com jaunty-security/multiverse Sources
Ign http://archive.ubuntu.com jaunty/main Packages
Ign http://archive.ubuntu.com jaunty/restricted Packages
Ign http://archive.ubuntu.com jaunty/main Sources
Ign http://archive.ubuntu.com jaunty/restricted Sources
Ign http://archive.ubuntu.com jaunty/universe Packages
Ign http://archive.ubuntu.com jaunty/universe Sources
Ign http://archive.ubuntu.com jaunty/multiverse Packages
Ign http://archive.ubuntu.com jaunty/multiverse Sources
Ign http://archive.ubuntu.com jaunty-updates/main Packages
Ign http://archive.ubuntu.com jaunty-updates/restricted Packages
Ign http://archive.ubuntu.com jaunty-updates/main Sources
Ign http://archive.ubuntu.com jaunty-updates/restricted Sources
Ign http://archive.ubuntu.com jaunty-updates/universe Packages
Ign http://archive.ubuntu.com jaunty-updates/universe Sources
Ign http://archive.ubuntu.com jaunty-updates/multiverse Packages
Ign http://archive.ubuntu.com jaunty-updates/multiverse Sources
Ign http://archive.ubuntu.com jaunty-security/main Packages
Ign http://archive.ubuntu.com jaunty-security/restricted Packages
Ign http://archive.ubuntu.com jaunty-security/main Sources
Ign http://archive.ubuntu.com jaunty-security/restricted Sources
Ign http://archive.ubuntu.com jaunty-security/universe Packages
Ign http://archive.ubuntu.com jaunty-security/universe Sources
Ign http://archive.ubuntu.com jaunty-security/multiverse Packages
Ign http://archive.ubuntu.com jaunty-security/multiverse Sources
Err http://archive.ubuntu.com jaunty/main Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty/restricted Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty/main Sources
400 Bad Request
Err http://archive.ubuntu.com jaunty/restricted Sources
400 Bad Request
Err http://archive.ubuntu.com jaunty/universe Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty/universe Sources
400 Bad Request
Err http://archive.ubuntu.com jaunty/multiverse Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty/multiverse Sources
400 Bad Request
Err http://archive.ubuntu.com jaunty-updates/main Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty-updates/restricted Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty-updates/main Sources
400 Bad Request
Err http://archive.ubuntu.com jaunty-updates/restricted Sources
400 Bad Request
Err http://archive.ubuntu.com jaunty-updates/universe Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty-updates/universe Sources
400 Bad Request
Err http://archive.ubuntu.com jaunty-updates/multiverse Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty-updates/multiverse Sources
400 Bad Request
Err http://archive.ubuntu.com jaunty-security/main Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty-security/restricted Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty-security/main Sources
400 Bad Request
Err http://archive.ubuntu.com jaunty-security/restricted Sources
400 Bad Request
Err http://archive.ubuntu.com jaunty-security/universe Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty-security/universe Sources
400 Bad Request
Err http://archive.ubuntu.com jaunty-security/multiverse Packages
400 Bad Request
Err http://archive.ubuntu.com jaunty-security/multiverse Sources
400 Bad Request
W: Failed to fetch http://www.geekconnection.org/remastersys/repository/ubuntu/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty/main/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty/restricted/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty/main/source/Sources 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty/restricted/source/Sources 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty/universe/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty/universe/source/Sources 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty/multiverse/source/Sources 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/main/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/restricted/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/main/source/Sources 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/restricted/source/Sources 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/universe/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/universe/source/Sources 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-updates/multiverse/source/Sources 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-security/main/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-security/restricted/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-security/main/source/Sources 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-security/restricted/source/Sources 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-security/universe/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-security/universe/source/Sources 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-security/multiverse/binary-i386/Packages 400 Bad Request

W: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/jaunty-security/multiverse/source/Sources 400 Bad Request

E: Some index files failed to download, they have been ignored, or old ones used instead.

srikanth40
August 21st, 2010, 04:59 PM
yeah, I am behind a proxy server. when I am trying to upadate something from repository i m getting this message.

Proxy: http://proxy.nitk.ac.in:9001/proxy.pac

what should i do for this.?