[Spacewalk-list] spacewalk-debian-sync - Ubuntu support ?

Morgan Cox morgancoxuk at gmail.com
Thu Feb 21 10:59:36 UTC 2013


Hi.

I am also trying to get the script to work with Ubuntu.

Your new modified version doesn't work (as it is looking for the work
'debian' in the URL), I tried the version I edited (with the debianroot
part edited out)  and this was the result...


---------------------------------------------------------------------
[root at spacewalk new]# cd ..
[root at spacewalk ~]# ./spacewalk-debian-sync2.pl --username spacecadet
--password '*************' --channel 'ubuntu12.04-main' --url '
http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/'
INFO: Fetching Packages.gz... done
INFO: Packages in repo:         8076
INFO: Packages already synced:  0
INFO: Packages to sync:         8076
INFO: 1/8076 : language-pack-si_12.04+20120417_all.deb
Error GETing
http://gb.archive.ubuntu.com/pool/main/l/language-pack-si/language-pack-si_12.04+20120417_all.deb:
Not Found at ./spacewalk-debian-sync2.pl line 135
----------------------------------------------


I then tried to modify the new latest script by simply changing the line


if ($url =~ /(.*debian\/)/) {

to

if ($url =~ /(.*ubuntu\/)/) {


Once I did that it 'started' to work.. however bombed out after a few
packages...

----------------------------------------------------------------------------
root at spacewalk new]# ./spacewalk-debian-sync.pl --username spacecadet
--password '******************' --channel 'ubuntu12.04-main' --url '
http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64'

INFO: Repo URL:
http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64
INFO: Debian root is http://gb.archive.ubuntu.com/ubuntu/
INFO: Fetching Packages.gz... done
INFO: Packages in repo:         8076
INFO: Packages already synced:  0
INFO: Packages to sync:         8076
INFO: 1/8076 : language-pack-si_12.04+20120417_all.deb
INFO: 2/8076 : at-spi2-doc_2.4.0-1_all.deb
INFO: 3/8076 : libwrap0-dev_7.6.q-21_amd64.deb
INFO: 4/8076 : fonts-sil-ezra_2.51-7_all.deb
INFO: 5/8076 : python-numpy-doc_1.6.1-6ubuntu1_all.deb
INFO: 6/8076 : language-pack-ks_12.04+20120417_all.deb
INFO: 7/8076 : libtext-diff-perl_1.41-1_all.deb
INFO: 8/8076 : python-apt-doc_0.8.3ubuntu7_all.deb
INFO: 9/8076 : tk_8.5.0-2_all.deb
INFO: 10/8076 : openssh-client_5.9p1-5ubuntu1_amd64.deb
INFO: 11/8076 : openoffice.org-thesaurus-en-au_2.1-5.3ubuntu1_all.deb
INFO: 12/8076 : libbusiness-isbn-data-perl_20081208-1_all.deb
INFO: 13/8076 : libtest-warn-perl_0.23-1_all.deb
INFO: 14/8076 : kajongg_4.8.2-0ubuntu1_all.deb
ERROR: /tmp/kajongg_4.8.2-0ubuntu1_all.deb: This file doesn't appear to be
a package

----------------------------------------------------------------------------

Any ideas how I can get it working with Ubuntu? (it seems to already
halfway work..)

One thing is that it must have the packages number wrong... There must be
far more than 8076 packages - in Debian the main repo has over 20000

Spacewalk would be even better than it is now is debian/ubuntu was
more natively supported

p.s Thanks for your efforts.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20130221/24731062/attachment.htm>


More information about the Spacewalk-list mailing list