Hi.<div><br></div><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I am also trying to get the script to work with Ubuntu.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">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...</div>

<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">---------------------------------------------------------------------</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<div>[root@spacewalk new]# cd ..</div><div>[root@spacewalk ~]# ./<a href="http://spacewalk-debian-sync2.pl/" target="_blank" style="color:rgb(17,85,204)">spacewalk-debian-sync2.pl</a> --username spacecadet --password '*************' --channel 'ubuntu12.04-main' --url '<a href="http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/" target="_blank" style="color:rgb(17,85,204)">http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/</a>'</div>

<div>INFO: Fetching Packages.gz... done</div><div>INFO: Packages in repo:         8076</div><div class="im" style="color:rgb(80,0,80)">INFO: Packages already synced:  0</div><div>INFO: Packages to sync:         8076</div>

<div>INFO: 1/8076 : language-pack-si_12.04+20120417_all.deb</div><div>Error GETing <a href="http://gb.archive.ubuntu.com/pool/main/l/language-pack-si/language-pack-si_12.04+20120417_all.deb" target="_blank" style="color:rgb(17,85,204)">http://gb.archive.ubuntu.com/pool/main/l/language-pack-si/language-pack-si_12.04+20120417_all.deb</a>: Not Found at ./<a href="http://spacewalk-debian-sync2.pl/" target="_blank" style="color:rgb(17,85,204)">spacewalk-debian-sync2.pl</a> line 135</div>

</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">----------------------------------------------</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

I then tried to modify the new latest script by simply changing the line</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">if ($url =~ /(.*debian\/)/) {</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">to</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">if ($url =~ /(.*ubuntu\/)/) {</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

Once I did that it 'started' to work.. however bombed out after a few packages...</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

----------------------------------------------------------------------------</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>root@spacewalk new]# ./<a href="http://spacewalk-debian-sync.pl/" target="_blank" style="color:rgb(17,85,204)">spacewalk-debian-sync.pl</a> --username spacecadet --password '******************' --channel 'ubuntu12.04-main' --url '<a href="http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64" target="_blank" style="color:rgb(17,85,204)">http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64</a>'</div>

<div><br></div><div>INFO: Repo URL: <a href="http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64" target="_blank" style="color:rgb(17,85,204)">http://gb.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64</a></div>

<div>INFO: Debian root is <a href="http://gb.archive.ubuntu.com/ubuntu/" target="_blank" style="color:rgb(17,85,204)">http://gb.archive.ubuntu.com/ubuntu/</a></div><div>INFO: Fetching Packages.gz... done</div><div>INFO: Packages in repo:         8076</div>

<div class="im" style="color:rgb(80,0,80)">INFO: Packages already synced:  0</div><div>INFO: Packages to sync:         8076</div><div>INFO: 1/8076 : language-pack-si_12.04+20120417_all.deb</div><div>INFO: 2/8076 : at-spi2-doc_2.4.0-1_all.deb</div>

<div>INFO: 3/8076 : libwrap0-dev_7.6.q-21_amd64.deb</div><div>INFO: 4/8076 : fonts-sil-ezra_2.51-7_all.deb</div><div>INFO: 5/8076 : python-numpy-doc_1.6.1-6ubuntu1_all.deb</div><div>INFO: 6/8076 : language-pack-ks_12.04+20120417_all.deb</div>

<div>INFO: 7/8076 : libtext-diff-perl_1.41-1_all.deb</div><div>INFO: 8/8076 : python-apt-doc_0.8.3ubuntu7_all.deb</div><div>INFO: 9/8076 : tk_8.5.0-2_all.deb</div><div>INFO: 10/8076 : openssh-client_5.9p1-5ubuntu1_amd64.deb</div>

<div>INFO: 11/8076 : openoffice.org-thesaurus-en-au_2.1-5.3ubuntu1_all.deb</div><div>INFO: 12/8076 : libbusiness-isbn-data-perl_20081208-1_all.deb</div><div>INFO: 13/8076 : libtest-warn-perl_0.23-1_all.deb</div><div>INFO: 14/8076 : kajongg_4.8.2-0ubuntu1_all.deb</div>

<div>ERROR: /tmp/kajongg_4.8.2-0ubuntu1_all.deb: This file doesn't appear to be a package</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">----------------------------------------------------------------------------</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Any ideas how I can get it working with Ubuntu? (it seems to already halfway work..)</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">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</div>

<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="background-color:rgb(255,255,255)"><font color="#222222" face="arial, sans-serif">Spacewalk would be even better than it is now is debian/ubuntu was more natively supported </font></div>

<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">

p.s Thanks for your efforts.</div></div>