LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-30-2013, 02:18 PM   #1
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Rep: Reputation: Disabled
Cannot access Debian repository servers


I run a server with Debian Linux. It has Dansguardian, Squid, and OpenXchange. Any time I do apt-get update, this is what I get. I have not added any entries to my hosts file. The etc/environment file is empty. I have a feeling that this all is due to an invalid proxy setting.

Code:
root@debian:~# apt-get update
Err http://software.open-xchange.com  Release.gpg
  Could not connect to software.open-xchange.com:80 (46.163.124.88). - connect (111: Connection refused)
Err http://software.open-xchange.com  Release.gpg
  Unable to connect to software.open-xchange.com:http:
Err http://software.open-xchange.com  Release.gpg
  Unable to connect to software.open-xchange.com:http:
Err http://software.open-xchange.com  Release.gpg
  Unable to connect to software.open-xchange.com:http:
Err http://software.open-xchange.com  Release.gpg
  Unable to connect to software.open-xchange.com:http:
Err http://software.open-xchange.com  Release.gpg
  Unable to connect to software.open-xchange.com:http:
Err http://security.debian.org wheezy/updates Release.gpg
  Could not connect to security.debian.org:80 (128.101.240.212). - connect (111: Connection refused) [IP: 128.101.240.212 80]
Err http://ftp.us.debian.org wheezy Release.gpg
  Could not connect to ftp.us.debian.org:80 (64.50.236.52). - connect (111: Connection refused) [IP: 64.50.236.52 80]
Err http://ftp.us.debian.org wheezy-updates Release.gpg
  Unable to connect to ftp.us.debian.org:http: [IP: 64.50.236.52 80]
Get:1 https://download.sernet.de wheezy Release.gpg [197 B]
Hit https://download.sernet.de wheezy Release
Ign https://download.sernet.de wheezy Release
Ign https://download.sernet.de wheezy/main Sources/DiffIndex
Ign https://download.sernet.de wheezy/main amd64 Packages/DiffIndex
Hit https://download.sernet.de wheezy/main Sources
Hit https://download.sernet.de wheezy/main amd64 Packages
Ign https://download.sernet.de wheezy/main Translation-en_US
Ign https://download.sernet.de wheezy/main Translation-en
Fetched 197 B in 10s (18 B/s)
Reading package lists... Done
W: GPG error: https://download.sernet.de wheezy Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY D9921B1CF4428B1A
W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy/Release.gpg  Could not connect to ftp.us.debian.org:80 (64.50.236.52). - connect (111: Connection refused) [IP: 64.50.236.52 80]

W: Failed to fetch http://security.debian.org/dists/wheezy/updates/Release.gpg  Could not connect to security.debian.org:80 (128.101.240.212). - connect (111: Connection refused) [IP: 128.101.240.212 80]

W: Failed to fetch http://software.open-xchange.com/products/appsuite/stable/backend/DebianWheezy/Release.gpg  Could not connect to software.open-xchange.com:80 (46.163.124.88). - connect (111: Connection refused)

W: Failed to fetch http://software.open-xchange.com/products/appsuite/stable/appsuiteui/DebianWheezy/Release.gpg  Unable to connect to software.open-xchange.com:http:

W: Failed to fetch http://software.open-xchange.com/products/appsuite/stable/office/DebianWheezy/Release.gpg  Unable to connect to software.open-xchange.com:http:

W: Failed to fetch http://software.open-xchange.com/products/appsuite/stable/office-web/DebianWheezy/Release.gpg  Unable to connect to software.open-xchange.com:http:

W: Failed to fetch http://software.open-xchange.com/products/appsuite/stable/documentconverter-api/DebianWheezy/Release.gpg  Unable to connect to software.open-xchange.com:http:

W: Failed to fetch http://ftp.us.debian.org/debian/dists/wheezy-updates/Release.gpg  Unable to connect to ftp.us.debian.org:http: [IP: 64.50.236.52 80]

W: Failed to fetch http://software.open-xchange.com/products/appsuite/stable/backend/DebianSqueeze/Release.gpg  Unable to connect to software.open-xchange.com:http:

W: Some index files failed to download. They have been ignored, or old ones used instead.
Thanks in advance.
 
Old 10-30-2013, 08:29 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

IIRC, if there is a proxy problem when doing an "apt-get update", the errors will explicitly mention it. There is no mention of a proxy in your error messages. Are you supposed to be using an http or ftp proxy? If so, how have you told apt about it?

AFAIK, you can set these with the http_proxy and ftp_proxy environment variables or in /etc/apt.conf with lines like:
Code:
http::Proxy "http://myproxyhost/";
ftp::Proxy "ftp://myproxyhost/";
The apt.conf man page has more info.

Evo2.
 
Old 10-31-2013, 08:07 AM   #3
Toasterman
Member
 
Registered: Oct 2013
Posts: 77

Original Poster
Rep: Reputation: Disabled
SUCCESS! Thank you. The apt.conf was what I needed. I created it and added the lines like you said. I was confused because the apt.conf was completely missing and so I had assumed the answers I found online were obsolete. I suppose that's my lesson for assuming things.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
whats the difference between debian amd64 and debian custom for servers !! hack-back !! Linux - Server 7 02-15-2013 03:49 AM
Debian Repository mohsenaria Linux - Newbie 17 06-16-2012 11:14 AM
Problem with mirror site on debian - cannot access repository when installing nglodnig Linux - General 9 05-28-2012 06:12 AM
How to access a git repository from behind a proxy (which requires authentication) anupamsr Linux - Software 6 01-16-2012 08:45 AM
LXer: Debian Etch And Xen From The Debian Repository LXer Syndicated Linux News 0 05-04-2007 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration