An improvised repo-sync to bring Debian packages into Spacewalk
stevemeier / spacewalk-debian-sync Goto Github PK
View Code? Open in Web Editor NEWAn improvised repo-sync to bring Debian packages into Spacewalk
An improvised repo-sync to bring Debian packages into Spacewalk
When I attempt to run the script
./spacewalk-debian-sync.pl --username testadmin --password 'P@$$Word12345!' --channel 'ubuntu-12.04' --url 'http://de.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/'
I get the following error:
Can't locate WWW/Mechanize.pm in @inc (@inc contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./spacewalk-debian-sync.pl line 38.
BEGIN failed--compilation aborted at ./spacewalk-debian-sync.pl line 38.
fault returned from XML RPC Server,fault code -210 :redstone.xmlrpc.XMLrpcFault: No such channel
Hi Steve,
when I try to execute you script as written in
http://www.devops-blog.net/spacewalk/registering-ubuntu-and-debian-servers-with-spacewalk
I get a syntax error:
./spacewalk-debian-sync.pl: Zeile 1: Syntaxfehler beim unerwarteten Wort newline' ./spacewalk-debian-sync.pl: Zeile 1:
'
So I got your last script version and installed all necessary modules. But the sync stops:
./spacewalk-debian-sync.pl --username admin --password ****** --channel trusty-updates --url 'http://de.archive.ubuntu.com/ubuntu/dists/trusty/main/binary-amd64/'
INFO: 1/8557 : language-pack-gnome-mt-base_14.04+20140410_all.deb
ERROR: /tmp/language-pack-gnome-mt-base_14.04+20140410_all.deb: This file doesn't appear to be a package
ERROR: rhnpush failed
Please note that in my case Packages.gz is downloaded ALREADY uncompressed, so trying to uncompress it kicks off an error.
I tried this script with ubuntu main repo and created a channel with arch set to x86_64 but the rhnpush fails with
INFO: Repo URL: http://de.archive.ubuntu.com/ubuntu/dists/precise/main/binary-amd64/
INFO: Ubuntu root is http://de.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
Error Message:
Package arch all-deb incompatible with channel ubuntu12.04-main
Error Class Code: 50
Error Class Info: Invalid information uploaded to the server
ERROR: rhnpush failed
Do I need a "special" setup for the channels ?
(Tried with Spacewalk 2.2. Maybe that matters)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.