Hey,

I had some trouble with Ubuntu 16.04 and spacewalk, too.

After some researches and developing, I finally got it working.
Spacewalk-repo-sync is working out of the box, so there is no more need to 
gebianSync.py anymore, but many other things still have to be changed handy.
It would be nice, if especially the bugs in some files could be fixed fastly.

https://bugzilla.redhat.com/attachment.cgi?id=999613&action=diff&context=patch&collapsed=&headers=1&format=raw
   ---   /usr/lib/python2.7/site-packages/spacewalk/server/rhnRepository.py @ 
Spacewalk
https://bugzilla.redhat.com/attachment.cgi?id=999612&action=diff&context=patch&collapsed=&headers=1&format=raw
   ---   /usr/lib/apt/methods/spacewalk @ Ubuntu 16.04
https://bugzilla.redhat.com/attachment.cgi?id=999611&action=diff&context=patch&collapsed=&headers=1&format=raw
   ---   /usr/lib/apt-spacewalk/pre_invoke.py @ Ubuntu 16.04
In /usr/lib/python2.7/site-packages/spacewalk/common/rhn_deb.py the 
checksum_type has to be changed:

sed -i "s#DEB_CHECKSUM_TYPE = 'md5'#DEB_CHECKSUM_TYPE = 'sha256'#g" 
/usr/lib/python2.7/site-packages/spacewalk/common/rhn_deb.py

Furthermore, spacewalk still does not create Release-files.
So I had to

gpg --gen-key      ( auf anderer ssh Session  rngd -r /dev/urandom )
gpg --export-secret-keys --armor [email protected] > spacewalk.gpg.privkey
gpg --list-keys
gpg --armor --export [email protected] > spacewalk.gpg.pubkey

With following script, you can create the files:

https://github.com/DeadRabb1t/spacewalk-scripts/blob/master/secureApt.sh

I’d like to make some of these changes, but I don’t know where
Greetings,

Christian


Von: [email protected] 
[mailto:[email protected]] Im Auftrag von Gabi Ra
Gesendet: Donnerstag, 16. März 2017 13:21
An: [email protected]
Betreff: Re: [Spacewalk-list] spacewalk 2.6 - ubuntu integration trouble

Hi,

Since 2.6 Spacewalk officially supports Ubuntu. You shouldn't use 
"debianSync.py" workaround any more.
I would suggest you to wipe the whole old Ubuntu packages and start over from 
clean page.

Software Channel -> Repositories -> Create a new repository -> Repository Type 
(drop down list) choose "deb".

Regards,
Gabi.


On Fri, Mar 10, 2017 at 4:46 PM, Pawan Timilsina 
<[email protected]<mailto:[email protected]>> wrote:
Can anyone be able to help me with this error?
/root/debianSync.py --username admin --password 'Secret123' --channel ' 
ubuntu16_universe_i386' --url 
'http://us.archive.ubuntu.com/ubuntu/dists/xenial/universe/binary-i386/'
INFO: Repo URL:  
http://us.archive.ubuntu.com/ubuntu/dists/xenial/universe/binary-i386/
INFO: Repo root: http://us.archive.ubuntu.com/ubuntu/
INFO: Packages in repo: 45575
INFO: Packages synced: 12004
INFO: Packages to sync: 33571
INFO: 1/33571: libatomicparsley-dev_2.1.5-1_i386.deb
ERROR: rhnpush [ rhnpush -c  ubuntu16_universe_i386 -u admin -p What@pa1n 
/tmp/libatomicparsley-dev_2.1.5-1_i386.deb ] failed: ('', "ERROR: 
/tmp/libatomicparsley-dev_2.1.5-1_i386.deb: This file doesn't appear to be a 
package\n")

It works fine with other repo but doesnt seem to work with i386.

Thanks

On Thu, Mar 9, 2017 at 10:14 AM, 
<[email protected]<mailto:[email protected]>> wrote:
Morning,

am trying to add ubuntu channel into spacewalk 2.6 and i have un error at the 
end of repo-sync when packages are linked to channels :

"ERROR invalid channel architecture 514"

the ubuntu channel is set to sha256 and AMD64 Debian architecture

having a look into the postgresql database i found into rhnchannelarch table 
those values :

514 | channel-amd64-deb | 2 | AMD64 Debian | 2015-10-08 ... | 2015-10-08

for example the ubuntu package is named : wget-1.17.1-1ubuntu1.1.amd64-deb

if somebody has an idear ... ?

_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/spacewalk-list



--
Pawan Timilsina

System Administrator

Research & Development Services

O  +1 859 232 5080<tel:+1%20859-232-5080>
M  +1 254 577 0250<tel:+1%20254-577-0250>
[email protected]<mailto:[email protected]>

[Das Bild wurde vom Absender entfernt.]<http://www.lexmark.com>
www.lexmark.com<http://www.lexmark.com>

_______________________________________________
Spacewalk-list mailing list
[email protected]<mailto:[email protected]>
https://www.redhat.com/mailman/listinfo/spacewalk-list

_______________________________________________
Spacewalk-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-list

Reply via email to