New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

error updating B2: tor-geoipdb

Got problems with your B2 or B3? Share and get helped!
Post Reply
tiddler
Posts: 32
Joined: 07 Apr 2009, 03:23

error updating B2: tor-geoipdb

Post by tiddler »

My b2 is at version 2.6.0.1

But when I do an update I get the following error:
root@b2:/home/myb2# apt-get upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
tor-geoipdb
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y

Then I get the following error:
dpkg: dependency problems prevent configuration of bubba-backend:
bubba-backend depends on tor (>= 0.2.2.39); however:
Last edited by tiddler on 12 Dec 2013, 11:40, edited 2 times in total.
tiddler
Posts: 32
Joined: 07 Apr 2009, 03:23

Re: error updating B2: tor-geoipdb

Post by tiddler »

OK, I turned TOR on and back off again.

I now get this:
root@b2:/home/myb2# apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
tor-geoipdb
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
jomcty
Posts: 2
Joined: 01 May 2013, 17:33

Re: error updating B2: tor-geoipdb

Post by jomcty »

I get the same thing while attempting to upgrade my B2 to the latest release.
tiddler
Posts: 32
Joined: 07 Apr 2009, 03:23

Re: error updating B2: tor-geoipdb

Post by tiddler »

Any news on what the problem is here?
Cheeseboy
Posts: 789
Joined: 08 Apr 2007, 12:16

Re: error updating B2: tor-geoipdb

Post by Cheeseboy »

Hi guys,

I see the same on my B2.
It is because there is a newer version of this package in the powerpc repositories:

Code: Select all

root@b2:/etc# apt-cache policy tor-geoipdb
tor-geoipdb:
  Installed: 0.2.2.35-1~squeeze+1+nmu1
  Candidate: 0.2.3.25-1~bpo60+1
  Version table:
     0.2.3.25-1~bpo60+1 0
        999 http://b3.update.excito.org/ elvin/main powerpc Packages
     0.2.2.39-1 0
        500 http://ftp.se.debian.org/debian/ squeeze/main powerpc Packages
        600 http://b3.update.excito.org/ upstream_squeeze/main powerpc Packages
 *** 0.2.2.35-1~squeeze+1+nmu1 0
        100 /var/lib/dpkg/status
Version 0.2.3.25-1~bpo60+1 is however depending on the package tor of the same version (0.2.3.25-1~bpo60+1), which does NOT exist in the powerpc repositories, even though it is in the ARM repositories. It looks to me like there was a specific reason to make a backport of tor 0.2.3.25 for the B3, but it didn't make it into the B2 release. The tor-geoipdb did though. I'm sure there was a reason for the first, and the second is a mistake. You can ignore the warning about the package having been kept back.

Do you even use tor in the first place?
If so, geoip is just a text file derived from a text file/DB mapping IP-ranges to countries.
I'm sure you can find an up-to-date version on the web if you need one.
Or just follow the commands at the very top of the existing file (this will result in a much shorter file though, might be a bad idea...)

Code: Select all

~/temp$ head -n 3 /usr/share/tor/geoip
# Last updated based on May 1 2012 Maxmind GeoLite Country
# wget http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
# cut -d, -f3-5 < GeoIPCountryWhois.csv|sed 's/"//g' > geoip
~/temp$ wget http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
--2013-12-31 18:24:09--  http://geolite.maxmind.com/download/geoip/database/GeoIPCountryCSV.zip
Resolving geolite.maxmind.com... 108.168.255.243, 2607:f0d0:3:8::4
Connecting to geolite.maxmind.com|108.168.255.243|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1269720 (1.2M) [application/zip]
Saving to: `GeoIPCountryCSV.zip'

100%[======================================================================================>] 1,269,720    988K/s   in 1.3s    

2013-12-31 18:24:11 (988 KB/s) - `GeoIPCountryCSV.zip' saved [1269720/1269720]

~/temp$ unzip GeoIPCountryCSV.zip
Archive:  GeoIPCountryCSV.zip
  inflating: GeoIPCountryWhois.csv   
~/temp$ cut -d, -f3-5 < GeoIPCountryWhois.csv|sed 's/"//g' > geoip
~/temp$ wc -l /usr/share/tor/geoip
177145 /usr/share/tor/geoip
~/temp$ wc -l ./geoip 
82690 ./geoip

Cheers,

Cheeseboy
Post Reply