[Spacewalk-list] Error in apt update

Thiago Anderson Santos thiago.santos at zup.com.br
Thu Oct 24 16:44:31 UTC 2019


Hello,

I am implementing SpaceWalk 2.9 in my technology park, I am having problems
to do the apt update of the machines.

Some technical information:

- Server
 * CentOS 7.5
 * Spacewalk 2.9-4
 * Created repositories like Debian amd64

- Workstation:
  * Ubunutu 18.04.2 LTS
  * Installed packages and their commands:
apt-get -y install gir1.2-gudev-1.0 libgudev-1.0-0 python-dbus python-newt
python-dmidecode python-dbus-dev python-libxml2 python-gobject python-gi
python-gobject-2 python-ethtool python -jabber python-apt python-openssl
  apt-get -y -f install

  # Download and install our spacewalk packages, which are newer than in
the default 18.04 repo
  mkdir / tmp / bionic-debs
  pushd / tmp / bionic-debs
  wget --no-check-certificate https:
//$spacewalkserver/pub/spacewalk-client-bionic/apt-transport-spacewalk_1.0.6-4.1_all.deb
  wget --no-check-certificate https:
//$spacewalkserver/pub/spacewalk-client-bionic/python-rhn_2.5.72-1_all.deb
  wget --no-check-certificate https:
//$spacewalkserver/pub/spacewalk-client-bionic/rhn-client-tools_2.3.5-1_amd64.deb
  wget --no-check-certificate https:
//$spacewalkserver/pub/spacewalk-client-bionic/rhnsd_5.0.4-3_amd64.deb
  wget --no-check-certificate https:
//$spacewalkserver/pub/spacewalk-client-bionic/python-ethtool_0.12-1_amd64.deb
wget --no-check-certificate https:
//$spacewalkserver/pub/spacewalk-client-bionic/python-gudev_147.2-3_amd64.deb
  apt install -y ./python-ethtool_0.12-1_amd64.deb
./python-rhn_2.5.72-1_all.deb ./python-gudev_147.2-3_amd64.deb
  apt install ./rhn-client-tools_2.3.5-1_amd64.deb
 apt install ./apt-transport-spacewalk_1.0.6-4.1_all.deb
apt install ./rhnsd_5.0.4-3_amd64.deb

  apt-get -y -f install
  wget --no-check-certificate "https:
//$spacewalkserver/pub/spacewalk.gpg.pubkey";
  apt-key add spacewalk.gpg.pubkey

  # Now set up and register with our Spacewalk server
  mkdir / var / lock / subsys
  wget --no-check-certificate https: // $ spacewalkserver / pub /
RHN-ORG-TRUSTED-SSL-CER / O / usr / share / rhn / RHN-ORG-TRUSTED-SSL-CERT
  rhnreg_ks --force --serverUrl = https: // $ spacewalkserver / XMLRPC
--sslCACert = / usr / share / rhn / RHN-ORG-TRUSTED-SSL-CERT
--activationkey = 1-ubuntu-18-lts-workstation
  # Take updates and security patches for main and universe from spacewalk
  echo "deb spacewalk: // $ spacewalkserver / XMLRPC channels: main
bionic-updates bionic-backports bionic-security">
/etc/apt/sources.list.d/spacewalk.list
  cp /etc/apt/sources.list /etc/apt/sources.list.bak
  # and not from the standard repositories
  perl -pi -e 's / ^ deb ([- src] *) (. *) bionic main / # deb $ 1 $ 2
bionic main /' /etc/apt/sources.list
  perl -pi -e 's / ^ deb ([- src] *) (. *) bionic-updates ([m | u] [^ u]) /
# deb $ 1 $ 2 bionic-updates $ 3 /' / etc / apt /sources.list
  perl -pi -e 's / ^ deb ([- src] *) (. *) bionic-security ([m | u] [^ u])
/ # deb $ 1 $ 2 bionic-security $ 3 /' / etc / apt /sources.list
  perl -pi -e 's / ^ deb ([- src] *) (. *) bionic-backports / # deb $ 1 $ 2
bionic-backports /' /etc/apt/sources.list

  # Work around https://bugzilla.redhat.com/show_bug.cgi?id=1187189
  wget --no-check-certificate https: // $ spacewalkserver / pub /
spacewalk-client-bionic / 49spacewalk-workaround -O
/etc/apt/apt.conf.d/49spacewalk-workaround

cat /etc/apt/apt.conf.d/49spacewalk-workaround
Acquire :: Pdiffs "false";


After apt:

gn: 1 spacewalk: // spacewalk / XMLRPC channels: InRelease
Err: 2 spacewalk: // spacewalk / XMLRPC channels: Release
  404 Not Found

E: The repository 'spacewalk: // spacewalk / XMLRPC channels: Release' does
not have a Release file.
Updating from such a repository cannot be done securely, and is therefore
disabled by default.
See apt-secure (8) manpage for repository creation and user configuration
details.




Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20191024/9721051a/attachment.htm>


More information about the Spacewalk-list mailing list