You are not logged in.

#1 2011-03-25 01:08:16

whitethorn
Member
Registered: 2010-05-02
Posts: 153

[SOLVED]Replacement for pkgd

Hi,

I was using pkgd up until today to share pacman packages across the network. This is very useful because my internet connection is extremely slow and updating packages like tex would usually take almost an hour. I was able to go to my university update my netbook and then share them with my pc when I got home.

According to this thread, pkgd is no longer being supported.
https://bbs.archlinux.org/viewtopic.php?id=115660

I was wondering if there are any viable alternatives to it.  I've looked into pkgdistcache but it doesn't work. I'm not very fluent in python and the following errors don't mean much to me.

pacman -S mousepad
resolving dependencies...
looking for inter-conflicts...

Targets (2): libxfcegui4-4.8.1-1  mousepad-0.2.16-2

Total Download Size:    0.29 MB
Total Installed Size:   2.07 MB

Proceed with installation? [Y/n] 
:: Retrieving packages from extra...
Traceback (most recent call last):
  File "/usr/bin/pkgdistcache-client", line 175, in <module>
    sys.exit(main(sys.argv))
  File "/usr/bin/pkgdistcache-client", line 136, in main
    browser = AvahiBrowser()
  File "/usr/bin/pkgdistcache-client", line 75, in __init__
    avahi_proxy = self.bus.get_object(avahi.DBUS_NAME, avahi.DBUS_PATH_SERVER)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 244, in get_object
    follow_name_owner_changes=follow_name_owner_changes)
  File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 241, in __init__
    self._named_service = conn.activate_name_owner(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 183, in activate_name_owner
    self.start_service_by_name(bus_name)
  File "/usr/lib/python2.7/site-packages/dbus/bus.py", line 281, in start_service_by_name
    'su', (bus_name, flags)))
  File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.Spawn.FileInvalid: Cannot do system-bus activation with no user

Traceback (most recent call last):
  File "/usr/bin/pkgdistcache-client", line 175, in <module>
    sys.exit(main(sys.argv))
  File "/usr/bin/pkgdistcache-client", line 129, in main
    pkgdistcache_clients = pickle.load(f)
  File "/usr/lib/python2.7/pickle.py", line 1378, in load
    return Unpickler(file).load()
  File "/usr/lib/python2.7/pickle.py", line 858, in load
    dispatch[key](self)
  File "/usr/lib/python2.7/pickle.py", line 880, in load_eof
    raise EOFError
EOFError
warning: failed to retrieve some files from extra
error: failed to commit transaction (error invoking external downloader)
Errors occurred, no packages were upgraded.

Any suggestions?  I know I could set up a local mirror and mount a shared folder, but I'm just wondering how well that will work when I'm roaming with my netbook?

Last edited by whitethorn (2011-04-17 20:47:23)

Offline

#2 2011-03-26 12:19:04

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [SOLVED]Replacement for pkgd

If your netbook is going to be the device that downloads the packages, setting up a nfs-server on it shouldn't cause to much problems when roaming? Just connect your desktop when you're home and copy/move/use the package-files?

Last edited by Spider.007 (2011-03-26 12:19:32)

Offline

#3 2011-03-27 09:27:18

blasse
Member
From: Poland
Registered: 2008-04-24
Posts: 303

Re: [SOLVED]Replacement for pkgd

Yeah, sure it can be done manually. But the beauty of pkgd was automation ;)Anyone has idea what can replace pkgd?


Proud ex-maintainer of firefox-pgo

Offline

#4 2011-03-27 13:58:33

eldragon
Member
From: Buenos Aires
Registered: 2008-11-18
Posts: 1,029

Re: [SOLVED]Replacement for pkgd

how about setting up a local mirror? it wont query slaves but its a start. at least, until we get a proper pkgd replacement

EDIT: and when i say local mirror, i only mean to serve /var/cache/pacman/pkg in your lan...not mirroring the entire database locally

Last edited by eldragon (2011-03-27 14:38:23)

Offline

#5 2011-04-16 14:24:19

n17ikh
Member
Registered: 2008-09-15
Posts: 11

Re: [SOLVED]Replacement for pkgd

A possible replacement for pkgd:
http://aur.archlinux.org/packages.php?ID=29407
I haven't tried it yet, but it looks promising.

Offline

#6 2011-04-16 17:45:36

whitethorn
Member
Registered: 2010-05-02
Posts: 153

Re: [SOLVED]Replacement for pkgd

eldragon wrote:

how about setting up a local mirror? it wont query slaves but its a start. at least, until we get a proper pkgd replacement

EDIT: and when i say local mirror, i only mean to serve /var/cache/pacman/pkg in your lan...not mirroring the entire database locally

Well I tried that, I used quickserve. The problem I had was my netbook has ati graphic card and my desktop has an nvidia.  So while it was updating it would give me an error about a corrupted file pretty much an empty file.  I haven't been able to figure out to tell it if the package is missing download it from a different server...

I tried pkgdistcache a couple weeks ago, I wasn't able to get it to work for me though.  I'll give it another try when I have some updates.

Offline

#7 2011-04-17 01:22:18

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: [SOLVED]Replacement for pkgd

Try Pacserve. I wrote it as a replacement for PkgD and I'm open to suggestions for improving it.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#8 2011-04-17 20:47:06

whitethorn
Member
Registered: 2010-05-02
Posts: 153

Re: [SOLVED]Replacement for pkgd

Nice,

wicked work. I love saving all that bandwidth! This topic is solved.

Offline

Board footer

Powered by FluxBB