LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   why apt-get comes with error on this? (https://www.linuxquestions.org/questions/debian-26/why-apt-get-comes-with-error-on-this-802849/)

Anarion 04-19-2010 08:57 AM

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?

AlucardZero 04-19-2010 10:38 AM

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.

Anarion 04-20-2010 12:01 AM

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?

AlucardZero 04-20-2010 08:21 AM

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 ?

Anarion 04-25-2010 05:04 AM

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 :doh:
so, what can be the cause?

Thanks for helping me out :)

Anarion 04-26-2010 10:06 AM

OK I finally managed to work it out!:hattip:
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!

Anarion 04-28-2010 11:51 AM

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 :Pengy:


All times are GMT -5. The time now is 09:00 PM.