LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-04-2006, 11:56 PM   #1
ehawk
Senior Member
 
Registered: Jul 2003
Posts: 1,257

Rep: Reputation: 48
SOLVED: synaptic repos refuse connection (proxy setting?)


Hi,

I just installed ubutu dapper today. I'm quite impressed with it, and successfully used synaptic for awhile, and was able to make use of the automatix script. Quite nice. I also installed privoxy and tor. After setting up and playing around with suspend and hibernate, I had some trouble getting logged in again. Ubuntu complained about something regarding X being locked in one of the files in /tmp. I was able to log in using the restore kernel version and went in and deleted files of zero or tiny length that mentioned X and lock. After that I was able to log in fine. I then tried to install some other packages (such as dillo) using synaptic. For visual posting purposes, I also tried using apt-get from the command line interface. I was greeted with the following error:

ehawk@ubuntu:~$ sudo apt-get install dillo
Reading package lists... Done
Building dependency tree... Done
The following NEW packages will be installed:
dillo
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 348kB of archives.
After unpacking 950kB of additional disk space will be used.
Err http://archive.ubuntu.com dapper/universe dillo 0.8.5-4ubuntu2
Could not connect to localhost:4001 (127.0.0.1). - connect (111 Connection refused)
Failed to fetch http://archive.ubuntu.com/ubuntu/poo...untu2_i386.deb Could not connect to localhost:4001 (127.0.0.1). - connect (111 Connection refused)
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?


I couldn't figure out how to make use of the --fix-missing option, but did try to update the package listing, which generated:

ehawk@ubuntu:~$ sudo apt-get update
Err http://archive.ubuntu.com dapper Release.gpg
Could not connect to localhost:4001 (127.0.0.1). - connect (111 Connection refused)

and so on for the other repositories. I thought this had something to do with either privoxy or tor and the accompanying proxy settings, so I attempted to use the export command to make apt-get aware of this, with no luck (same errors). I was able to remove both tor and privoxy using apt-get, and then rebooted, hoping to eliminate the changed proxy settings, but the above error persists. Perhaps this has something to do with accidentally removing a gpg key (but I think it would try to go ahead, simply mentioning that the package was not authenticated). I think my /etc/apt/sources.list file is ok, here it is:

## Automatix sources.list
## This is automatically generated by Automatix


####################################
### Official Ubuntu Repositories ###
####################################

# Dapper Final Release Repository
deb http://archive.ubuntu.com/ubuntu dapper main
deb-src http://archive.ubuntu.com/ubuntu dapper main

deb http://archive.ubuntu.com/ubuntu dapper restricted
deb-src http://archive.ubuntu.com/ubuntu dapper restricted

deb http://archive.ubuntu.com/ubuntu dapper universe
deb-src http://archive.ubuntu.com/ubuntu dapper universe

deb http://archive.ubuntu.com/ubuntu dapper multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper multiverse

# Dapper Security Updates
deb http://archive.ubuntu.com/ubuntu dapper-security main
deb-src http://archive.ubuntu.com/ubuntu dapper-security main

deb http://archive.ubuntu.com/ubuntu dapper-security restricted
deb-src http://archive.ubuntu.com/ubuntu dapper-security restricted

deb http://archive.ubuntu.com/ubuntu dapper-security universe
deb-src http://archive.ubuntu.com/ubuntu dapper-security universe

deb http://archive.ubuntu.com/ubuntu dapper-security multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-security multiverse

# Dapper Bugfix Updates
deb http://archive.ubuntu.com/ubuntu dapper-updates main
deb-src http://archive.ubuntu.com/ubuntu dapper-updates main

deb http://archive.ubuntu.com/ubuntu dapper-updates restricted
deb-src http://archive.ubuntu.com/ubuntu dapper-updates restricted

deb http://archive.ubuntu.com/ubuntu dapper-updates universe
deb-src http://archive.ubuntu.com/ubuntu dapper-updates universe

deb http://archive.ubuntu.com/ubuntu dapper-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu dapper-updates multiverse

# Dapper Backports (new software versions, provided by the Ubuntu Backports Project)
# deb http://archive.ubuntu.com/ubuntu dapper-backports main
# deb-src http://archive.ubuntu.com/ubuntu dapper-backports main

# deb http://archive.ubuntu.com/ubuntu dapper-backports restricted
# deb-src http://archive.ubuntu.com/ubuntu dapper-backports restricted

deb http://archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse

# deb http://archive.ubuntu.com/ubuntu dapper-backports universe
# deb-src http://archive.ubuntu.com/ubuntu dapper-backports universe

# deb http://archive.ubuntu.com/ubuntu dapper-backports multiverse
# deb-src http://archive.ubuntu.com/ubuntu dapper-backports multiverse

deb http://archive.canonical.com/ubuntu dapper-commercial main


##############################
### Automatix Repositories ###
##############################

deb http://www.getautomatix.com/apt dapper main

## created by automatixrepo3
deb http://wine.lowvoice.nl/apt dapper main
deb http://theli.free.fr/packages/ dapper listen
deb http://people.ubuntu.com/~seb128/deb ./
deb http://dl.google.com/linux/deb/ stable non-free
deb http://www.beerorkid.com/compiz/ dapper main


It seems to me that it probably has to do with the localhost:4001 network connection setting, but I don't know how to fix it. I would appreciate any help you can suggest. I also tried running

apt-get -f install
dpkg --configure -a

several times, to no avail. Thanks for any suggestions you can offer.

SOLVED: I went back through the history of my synaptic activity and found that I added either a dependency or recommended package, anon-proxy, that was causing the proxy problem, and that I didn't recall, as it was an afterthought to tor and privoxy. Once I removed that via apt-get and reboot, the problem vanished. Thanks to those who ready my post, sorry to take your time. I will try to figure out how to keep tor and privoxy going while still using synaptic. I guess it's easy enough to add and remove via apt-get when I want anonymity versus need to get updates.

Last edited by ehawk; 08-05-2006 at 01:17 AM.
 
Old 08-06-2006, 02:24 PM   #2
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
tor and privoxy don't influence the system. That was anon-proxy by setting the HTTP_PROXY environment variable, I guess.

Anyways, have fun with Ubuntu!
 
  


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
ssh connection refuse in local pc's! vador Linux - Software 1 03-23-2006 03:31 AM
adding repos to Synaptic fakie_flip Linux - Software 5 10-16-2005 02:45 AM
Debian (Sarge) repos to use w/ Synaptic? TippyToes Linux - Software 6 07-07-2005 06:39 PM
Xserver Refuse Connection ..:eMa:.. Debian 3 04-14-2004 04:58 PM
why my sendmail refuse to connection? lzyking Linux - Software 1 08-11-2003 04:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:27 PM.

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