LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-19-2010, 08:57 AM   #1
Anarion
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Rep: Reputation: 0
why apt-get comes with error on this?


Hello guys, I wanted to install tor+privoxy on this new install of lenny on my pc. On the previous system, it worked fine and installed correctly. But on this one I get this output:
Code:
localhost:/home/anarion# apt-get install tor
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  privoxy tor-geoipdb
Suggested packages:
  mixmaster mixminion anon-proxy
The following NEW packages will be installed:
  privoxy tor tor-geoipdb
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 2069kB/2624kB of archives.
After this operation, 7246kB of additional disk space will be used.
Do you want to continue [Y/n]? 
Get:1 http://ftp.de.debian.org lenny/main tor 0.2.0.35-1~lenny2 [1353kB]
Get:2 http://ftp.de.debian.org lenny/main tor-geoipdb 0.2.0.35-1~lenny2 [715kB]        
Fetched 2069kB in 2min16s (15.1kB/s)                                                   
Selecting previously deselected package privoxy.
(Reading database ... 100286 files and directories currently installed.)
Unpacking privoxy (from .../privoxy_3.0.9-1_amd64.deb) ...
Selecting previously deselected package tor.
Unpacking tor (from .../tor_0.2.0.35-1~lenny2_amd64.deb) ...
Selecting previously deselected package tor-geoipdb.
Unpacking tor-geoipdb (from .../tor-geoipdb_0.2.0.35-1~lenny2_all.deb) ...
Processing triggers for doc-base ...
Processing 3 added doc-base file(s)...
Processing triggers for man-db ...
Setting up privoxy (3.0.9-1) ...
Starting filtering proxy server: invoke-rc.d: initscript privoxy, action "start" failed.
dpkg: error processing privoxy (--configure):
 subprocess post-installation script returned error exit status 1
Setting up tor (0.2.0.35-1~lenny2) ...
Raising maximum number of filedescriptors (ulimit -n) to 32768.
Starting tor daemon: tor...
Apr 19 18:16:38.821 [notice] Tor v0.2.0.35. This is experimental software. Do not rely on it for strong anonymity. (Running on Linux x86_64)
Apr 19 18:16:38.841 [notice] Initialized libevent version 1.3e using method epoll. Good.
Apr 19 18:16:38.841 [notice] Opening Socks listener on 127.0.0.1:9050
Apr 19 18:16:38.848 [warn] Could not bind to 127.0.0.1:9050: Cannot assign requested address
Apr 19 18:16:38.848 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Apr 19 18:16:38.848 [err] Reading config failed--see warnings above.
invoke-rc.d: initscript tor, action "start" failed.
dpkg: error processing tor (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of tor-geoipdb:
 tor-geoipdb depends on tor (>= 0.2.0.35-1~lenny2); however:
  Package tor is not configured yet.
dpkg: error processing tor-geoipdb (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 privoxy
 tor
 tor-geoipdb
E: Sub-process /usr/bin/dpkg returned an error code (1)
I have Debian Stable Lenny. Also I tried using the testing repository before but the same came up . Does anyone know what's wrong?
 
Old 04-19-2010, 10:38 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Yes, something has bound to 127.0.0.1:9050 which is what Tor wants.

Code:
Apr 19 18:16:38.848 [warn] Could not bind to 127.0.0.1:9050: Cannot assign requested address
Apr 19 18:16:38.848 [warn] Failed to parse/validate config: Failed to bind one of the listener ports.
Run netstat -nap | grep :9050 as root and stop/kill the offending process, then try again.
 
1 members found this post helpful.
Old 04-20-2010, 12:01 AM   #3
Anarion
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Original Poster
Rep: Reputation: 0
After running the command, nothing shows up:
Code:
localhost:/home/anarion# netstat -nap | grep :9050
localhost:/home/anarion#
Could it be some iptables rules or something similar?
 
Old 04-20-2010, 08:21 AM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
I doubt it, but sure, stop iptables. Have you tried running your apt-get install again? Is there anything more in /var/log/syslog or /var/log/tor/tor.log ?
 
1 members found this post helpful.
Old 04-25-2010, 05:04 AM   #5
Anarion
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Original Poster
Rep: Reputation: 0
the tor.log doesn't exist at all, and nothing about this problem was stated in syslog I disabled the iptables temporarily and tried to reinstall... but the same came up
so, what can be the cause?

Thanks for helping me out
 
Old 04-26-2010, 10:06 AM   #6
Anarion
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Original Poster
Rep: Reputation: 0
OK I finally managed to work it out!
It was iptables, now that I installed firestarter, it allowed all outgoing connections, I did that because of my torrent downloads, but now tor started without problem.

Thanks!
 
Old 04-28-2010, 11:51 AM   #7
Anarion
LQ Newbie
 
Registered: Sep 2009
Posts: 13

Original Poster
Rep: Reputation: 0
It was iptables Nope! It was the loopback device being down. A simple ifconfig did the job:
Code:
ifconfig
This didn't include the lo device, so:
Code:
ifconfig lo up
This made it up again
 
  


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
Installing from apt-get fails often, apt-get update gives error, etc What should ido? mitchell7man Ubuntu 3 02-27-2012 02:55 AM
APT-GET Error carlosinfl Debian 22 01-11-2006 12:47 PM
apt error? microsoft/linux Debian 3 01-01-2006 11:41 PM
APT-GET Error carlosinfl Debian 3 12-29-2005 08:07 AM
apt-get error installing xlibs 4.2.1-14, apt-get won't work at all now pib Debian 1 12-10-2003 11:39 PM

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

All times are GMT -5. The time now is 02:32 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