Installing on a clean Ubuntu 9.04 box

General support for problems installing or using Deluge
Post Reply
omfgbunnies
New User
New User
Posts: 5
Joined: Tue Sep 15, 2009 11:57 pm

Installing on a clean Ubuntu 9.04 box

Post by omfgbunnies »

I'm having terrible trouble here. After two fresh installs I'm a bit further on, but now am up against apt-get's refusal to resolve dependencies.

I added

Code: Select all

deb http://ppa.launchpad.net/deluge-team/ubuntu jaunty main universe
to the /etc/apt/sources.list file, and did the GPG fix mentioned here (as apt-get update wouldn't work until this was done) - however when I come to install deluge, I'm thrown up this error:

Code: Select all

# apt-get install deluge
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
  deluge: Depends: python (>= 2.5) but it is not going to be installed
          Depends: python-support (>= 0.7.1) but it is not going to be installed
          Depends: deluge-common (= 1.1.9+dfsg-2~jaunty~ppa1) but it is not going to be installed
          Depends: python-glade2 but it is not going to be installed
          Depends: python-notify but it is not going to be installed
          Depends: python-dbus but it is not going to be installed
E: Broken packages
It's slightly different to what I received the first time, because one of the many pages I visited on my endless trawl through Google mentioned they'd had success after uninstalling python and reinstalling it. The problem I have is that when I try to install python alone, it gives me similar errors:

Code: Select all

# apt-get install python
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
  python: Depends: python-minimal (= 2.5.2-3ubuntu1) but 2.6.2-0ubuntu1 is to be installed
E: Broken packages

I have trawled the Deluge FAQs and forums but can't seem to find an answer. Where can I go from here? I'm at a total loss, as I'm not an expert on Ubuntu.

Help much appreciated :)
omfgbunnies
New User
New User
Posts: 5
Joined: Tue Sep 15, 2009 11:57 pm

Re: Installing on a clean Ubuntu 9.04 box

Post by omfgbunnies »

Okay, so aptitude managed to work around the dependencies. However it dropped Python down to 2.5.3. Is this what's causing this hellish output when I attempt to start the application from the command line? (bearing in mind this is a headless box)

Code: Select all

# deluge
[ERROR   ] 17:21:22 config:293 Error backing up old config..
/var/lib/python-support/python2.5/gtk-2.0/gtk/__init__.py:72: GtkWarning: could not open display
  warnings.warn(str(e), _gtk.Warning)
1.1.9
/var/lib/python-support/python2.5/deluge/ui/gtkui/queuedtorrents.py:60: Warning: invalid (NULL) pointer instance
  "glade/queuedtorrents.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/queuedtorrents.py:60: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  "glade/queuedtorrents.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/queuedtorrents.py:60: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  "glade/queuedtorrents.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/queuedtorrents.py:60: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  "glade/queuedtorrents.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/queuedtorrents.py:60: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
  "glade/queuedtorrents.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/queuedtorrents.py:76: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  gtk.TreeViewColumn(_("Torrent"), gtk.CellRendererText(), text=0))
/var/lib/python-support/python2.5/deluge/ui/gtkui/queuedtorrents.py:76: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  gtk.TreeViewColumn(_("Torrent"), gtk.CellRendererText(), text=0))
[ERROR   ] 17:21:23 config:293 Error backing up old config..
/var/lib/python-support/python2.5/deluge/ui/gtkui/mainwindow.py:63: Warning: invalid (NULL) pointer instance
  "glade/main_window.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/mainwindow.py:63: Warning: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
  "glade/main_window.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  "glade/main_window.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/mainwindow.py:63: Warning: g_object_get: assertion `G_IS_OBJECT (object)' failed
  "glade/main_window.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/mainwindow.py:63: Warning: value "TRUE" of type `gboolean' is invalid or out of range for property `visible' of type `gboolean'
  "glade/main_window.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gtk_icon_theme_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed
  "glade/main_window.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gtk_icon_size_lookup_for_settings: assertion `GTK_IS_SETTINGS (settings)' failed
  "glade/main_window.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: Invalid icon size 1

  "glade/main_window.glade"))
/var/lib/python-support/python2.5/deluge/ui/gtkui/mainwindow.py:63: GtkWarning: gtk_icon_theme_load_icon: assertion `GTK_IS_ICON_THEME (icon_theme)' failed
  "glade/main_window.glade"))
Segmentation fault
johnnyg
Top Bloke
Top Bloke
Posts: 1522
Joined: Sun Oct 28, 2007 4:00 am
Location: Sydney, Australia

Re: Installing on a clean Ubuntu 9.04 box

Post by johnnyg »

don't run deluge as root.

you're getting because that error you're trying to run the deluge GTK ui on a headless server

you just want to run the daemon:

Code: Select all

deluged
also you may find this useful: http://dev.deluge-torrent.org/wiki/UserGuide/ThinClient
omfgbunnies
New User
New User
Posts: 5
Joined: Tue Sep 15, 2009 11:57 pm

Re: Installing on a clean Ubuntu 9.04 box

Post by omfgbunnies »

Thanks for the reply.

I don't intend running it as root at the end of the day.

I've followed every guide, including headless, that I can find. I get this when visiting the webui page:

Code: Select all

--Deluge Error--
NoCoreError : 'The core proxy is invalid.'
path : /connect
file : /var/lib/python-support/python2.5/deluge/ui/client.py in call, line 123

--Input--
<Storage {'other_uri': '', 'uri': 'http://localhost:58846', 'submit': 'Connect'}>

--Versions--
WebUi : 1.1.9r
Python 2.5.3 (r253:67855, Dec 21 2008, 10:45:24) 
[GCC 4.3.3 20081217 (prerelease)]:

--Traceback--
  File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/webapi.py", line 310, in wsgifunc
    result = func()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/request.py", line 131, in <lambda>
    func = lambda: handle(inp, fvars)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/lib/webpy022/request.py", line 61, in handle
    return tocall(*([x and urllib.unquote(x) for x in args] + fna))
  File "/var/lib/python-support/python2.5/deluge/ui/webui/pages.py", line 334, in POST
    utils.daemon_connect(uri)
  File "/var/lib/python-support/python2.5/deluge/ui/webui/utils.py", line 211, in daemon_connect
    webui_plugin_manager.start()
  File "/var/lib/python-support/python2.5/deluge/ui/webui/components.py", line 151, in start
    aclient.get_enabled_plugins(self._on_get_enabled_plugins)
  File "/var/lib/python-support/python2.5/deluge/ui/client.py", line 377, in async_proxy
    return self.core.call(method_name, *args, **kwargs)
  File "/var/lib/python-support/python2.5/deluge/ui/client.py", line 124, in call
    raise deluge.error.NoCoreError("The core proxy is invalid.")

...and this when attempting to start deluged:

Code: Select all

# deluged
Traceback (most recent call last):
  File "/usr/bin/deluged", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2562, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: deluge==1.1.9
... the log file has displayed this and nothing else for a while, so I assume it's libtorrent that's the problem. Please, please correct me if I'm wrong, and tell me what to do! :(

Code: Select all

# cat .config/deluge/deluged.log 
[ERROR   ] 21:59:02 main:207 No module named libtorrent
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/deluge/main.py", line 204, in start_daemon
    Daemon(options, args)
  File "/var/lib/python-support/python2.5/deluge/core/daemon.py", line 54, in __init__
    from deluge.core.core import Core
  File "/var/lib/python-support/python2.5/deluge/core/core.py", line 57, in <module>
    import libtorrent as lt
ImportError: No module named libtorrent

I'm at a total loss, and have run out of places to look on the interwebs, it seems. What else can I do? I'd love to get Deluge working, but it just seems to be an impossibility. :(
Post Reply