[Spacewalk-list] all packages listed as upgradable on debian 9 and ubuntu 1604

Robert Paschedag robert.paschedag at web.de
Fri Mar 16 22:04:35 UTC 2018


On 03/15/18 18:23, Robert Paschedag wrote:
> Am 14. März 2018 16:25:30 MEZ schrieb Andrei Popenta <andrei.popenta at visma.com>:
>> Hi guys
>>
>> i'm running spacewalk 2.7 with debian 8, debian 9 and ubuntu 16.04
>> channels.
>>
>> one problem I am facing is that if apt uses
>> only /etc/apt/sources.list.d/spacewalk.list as lists when I run apt
>> update
>> it shows that 400 packages are available for upgrade.
>> If I add the official sources in /etc/apt/sources.list it shows that
>> only
>> 29 packages are available for upgrade which is true.
>> This happens both for debian 9 and ubuntu 16.04.
>> Debian 8 is not affected by this.
>>
>> I know that someone else has faced this issue before, as I noticed 2
>> comments on this article
>> http://www.devops-blog.net/spacewalk/registering-ubuntu-and-debian-servers-with-spacewalk
>> but couldn't find any solution for it.
>>
>> Do you know what might cause this ?
>>
>> I have added Dirk's workaround mentioned
>> https://bugzilla.redhat.com/show_bug.cgi?id=1243387
>> to  /etc/apt/apt.conf.d/50spacewalk.
>>
>> thanks,
>> Andrei
> 
> Hi,
> 
> in Debian 9, apt got some improvements. These improvements caused me a lot headache. My problem was, that although I ran apt-get upgrade, all packages were again upgradable (over and over again)
> 
> This is caused by the "Multi-Arch" header, which is missing in the packages.gz files generated by SW.
> 
> To compensate this, I'm really using a lot of workarounds.
> 
> First... Use Steve Meiers Script to download all packages and (rhnpush) them into the database.
> 
> But I modified this script to also extract the "Multi-Arch" header of a package (if present) and store this information for later usage (name, version, architecture)
> 
> After the import, I wait several minutes to let SW do its jobs (create the packages.gz files).
> 
> I then patch these files and add the missing "Multi-Arch" headers to the packages.gz.
> 
> Before Debian 9, the official repo had only a few packages with "Multi-Arch" headers.
> 
> In Debian 9, the "main" channel has nearly 9000 packages with these headers.
> 
> Robert
> 

See here the modified version of Steve Meiers spacewalk-debian-sync.pl
script + my spacewalk-add-debian-multiarch-header.py script which adds
the missing Multi-Arch headers to the packages.gz

https://github.com/rpasche/spacewalk-debian-sync/tree/add-multiarch-header

Robert




More information about the Spacewalk-list mailing list