Updating from 2.1 to 2.2 Errors

**Problem:I’m trying to upgrade from 2.1 to 2.2 and I’m running into an issue. I’m on Ubuntu 18.04 - and it appears that the packages were built this morning, but there some packages with scrachbuild in them. Does anyone know if something went wrong on the builds?

Expected outcome:

**Foreman and Proxy versions:2.1.4-1

Foreman and Proxy plugin versions:

**Distribution and version:Ubuntu 18.04

Other relevant data:
ruby-hammer-cli-foreman is already the newest version (2.1.3-1).

  • Some packages could not be installed. This may mean that you have*

  • requested an impossible situation or if you are using the unstable*

  • distribution that some required packages have not yet been created*

  • or been moved out of Incoming.*

  • The following information may help to resolve the situation:*

  • The following packages have unmet dependencies:*

  • foreman-vmware : Depends: foreman (= 9999-bionic+scratchbuild+20210503155104) but 9999-bionic+scratchbuild+20210503183846 is to be installed*
    
  • E: Unable to correct problems, you have held broken packages.*

> apt list -a foreman
> Listing… Done
> foreman/bionic 9999-bionic+scratchbuild+20210503183846 amd64 [upgradable from: 2.1.4-1]
> foreman/bionic 2.2.3-1 amd64
> foreman/bionic 2.2.2-1 amd64
> foreman/bionic 2.2.1-1 amd64
> foreman/bionic 2.2.0-1 amd64
> foreman/bionic 2.2.0~rc4-1 amd64
> foreman/bionic 2.2.0~rc3-1 amd64
> foreman/bionic 2.2.0~rc1-1 amd64
> foreman/now 2.1.4-1 amd64 [installed,upgradable to: 9999-bionic+scratchbuild+20210503183846]

Hey,

it looks like you have nightly sources enabled, which seems wrong.

Can you please post the output of apt policy and grep -r "" /etc/apt/sources.list*?

Hi Thanks for the response:

:/etc/apt/sources.list.d#  apt policy
Package files:
 100 /var/lib/dpkg/status
     release a=now
 500 http://apt.puppetlabs.com bionic/puppet5 all Packages
     release o=Puppetlabs,a=bionic,n=bionic,l=Puppetlabs,c=puppet5,b=all
     origin apt.puppetlabs.com
 500 http://apt.puppetlabs.com bionic/puppet5 amd64 Packages
     release o=Puppetlabs,a=bionic,n=bionic,l=Puppetlabs,c=puppet5,b=amd64
     origin apt.puppetlabs.com
 500 http://deb.theforeman.org plugins/2.2 amd64 Packages
     release o=TheForeman,a=plugins,n=plugins,l=TheForeman,c=2.2,b=amd64
     origin deb.theforeman.org
 500 http://deb.theforeman.org bionic/2.2 amd64 Packages
     release o=TheForeman,a=bionic,n=bionic,l=TheForeman,c=2.2,b=amd64
     origin deb.theforeman.org
 500 http://archive.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-security,n=bionic,l=Ubuntu,c=multiverse,b=amd64
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-security,n=bionic,l=Ubuntu,c=universe,b=amd64
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-security,n=bionic,l=Ubuntu,c=restricted,b=amd64
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu bionic-security/main amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-security,n=bionic,l=Ubuntu,c=main,b=amd64
     origin archive.ubuntu.com
 100 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-backports,n=bionic,l=Ubuntu,c=universe,b=amd64
     origin archive.ubuntu.com
 100 http://archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-backports,n=bionic,l=Ubuntu,c=main,b=amd64
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=multiverse,b=amd64
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=universe,b=amd64
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=restricted,b=amd64
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic-updates,n=bionic,l=Ubuntu,c=main,b=amd64
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=multiverse,b=amd64
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=universe,b=amd64
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=restricted,b=amd64
     origin archive.ubuntu.com
 500 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages
     release v=18.04,o=Ubuntu,a=bionic,n=bionic,l=Ubuntu,c=main,b=amd64
     origin archive.ubuntu.com
Pinned packages:



root@CETL-IS-LCM001:/etc/apt/sources.list.d# grep -r "" /etc/apt/sources.list*
/etc/apt/sources.list:# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
/etc/apt/sources.list:# newer versions of the distribution.
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic main restricted
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu bionic main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:## Major bug fix updates produced after the final release of the
/etc/apt/sources.list:## distribution.
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu bionic-updates main restricted
/etc/apt/sources.list:
/etc/apt/sources.list:## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
/etc/apt/sources.list:## team. Also, please note that software in universe WILL NOT receive any
/etc/apt/sources.list:## review or updates from the Ubuntu security team.
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic universe
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu bionic universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-updates universe
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu bionic-updates universe
/etc/apt/sources.list:
/etc/apt/sources.list:## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
/etc/apt/sources.list:## team, and may not be under a free licence. Please satisfy yourself as to
/etc/apt/sources.list:## your rights to use the software. Also, please note that software in
/etc/apt/sources.list:## multiverse WILL NOT receive any review or updates from the Ubuntu
/etc/apt/sources.list:## security team.
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic multiverse
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu bionic multiverse
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-updates multiverse
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu bionic-updates multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:## N.B. software from this repository may not have been tested as
/etc/apt/sources.list:## extensively as that contained in the main release, although it includes
/etc/apt/sources.list:## newer versions of some applications which may provide useful features.
/etc/apt/sources.list:## Also, please note that software in backports WILL NOT receive any review
/etc/apt/sources.list:## or updates from the Ubuntu security team.
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
/etc/apt/sources.list:
/etc/apt/sources.list:## Uncomment the following two lines to add software from Canonical's
/etc/apt/sources.list:## 'partner' repository.
/etc/apt/sources.list:## This software is not part of Ubuntu, but is offered by Canonical and the
/etc/apt/sources.list:## respective vendors as a service to Ubuntu users.
/etc/apt/sources.list:# deb http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list:# deb-src http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list:
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-security main restricted
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu bionic-security main restricted
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-security universe
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu bionic-security universe
/etc/apt/sources.list:deb http://archive.ubuntu.com/ubuntu bionic-security multiverse
/etc/apt/sources.list:# deb-src http://archive.ubuntu.com/ubuntu bionic-security multiverse
/etc/apt/sources.list.curtin.old:# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
/etc/apt/sources.list.curtin.old:# newer versions of the distribution.
/etc/apt/sources.list.curtin.old:deb http://archive.ubuntu.com/ubuntu/ bionic main restricted
/etc/apt/sources.list.curtin.old:# deb-src http://archive.ubuntu.com/ubuntu/ bionic main restricted
/etc/apt/sources.list.curtin.old:
/etc/apt/sources.list.curtin.old:## Major bug fix updates produced after the final release of the
/etc/apt/sources.list.curtin.old:## distribution.
/etc/apt/sources.list.curtin.old:deb http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
/etc/apt/sources.list.curtin.old:# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates main restricted
/etc/apt/sources.list.curtin.old:
/etc/apt/sources.list.curtin.old:## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
/etc/apt/sources.list.curtin.old:## team. Also, please note that software in universe WILL NOT receive any
/etc/apt/sources.list.curtin.old:## review or updates from the Ubuntu security team.
/etc/apt/sources.list.curtin.old:deb http://archive.ubuntu.com/ubuntu/ bionic universe
/etc/apt/sources.list.curtin.old:# deb-src http://archive.ubuntu.com/ubuntu/ bionic universe
/etc/apt/sources.list.curtin.old:deb http://archive.ubuntu.com/ubuntu/ bionic-updates universe
/etc/apt/sources.list.curtin.old:# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates universe
/etc/apt/sources.list.curtin.old:
/etc/apt/sources.list.curtin.old:## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
/etc/apt/sources.list.curtin.old:## team, and may not be under a free licence. Please satisfy yourself as to
/etc/apt/sources.list.curtin.old:## your rights to use the software. Also, please note that software in
/etc/apt/sources.list.curtin.old:## multiverse WILL NOT receive any review or updates from the Ubuntu
/etc/apt/sources.list.curtin.old:## security team.
/etc/apt/sources.list.curtin.old:deb http://archive.ubuntu.com/ubuntu/ bionic multiverse
/etc/apt/sources.list.curtin.old:# deb-src http://archive.ubuntu.com/ubuntu/ bionic multiverse
/etc/apt/sources.list.curtin.old:deb http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
/etc/apt/sources.list.curtin.old:# deb-src http://archive.ubuntu.com/ubuntu/ bionic-updates multiverse
/etc/apt/sources.list.curtin.old:
/etc/apt/sources.list.curtin.old:## N.B. software from this repository may not have been tested as
/etc/apt/sources.list.curtin.old:## extensively as that contained in the main release, although it includes
/etc/apt/sources.list.curtin.old:## newer versions of some applications which may provide useful features.
/etc/apt/sources.list.curtin.old:## Also, please note that software in backports WILL NOT receive any review
/etc/apt/sources.list.curtin.old:## or updates from the Ubuntu security team.
/etc/apt/sources.list.curtin.old:deb http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
/etc/apt/sources.list.curtin.old:# deb-src http://archive.ubuntu.com/ubuntu/ bionic-backports main restricted universe multiverse
/etc/apt/sources.list.curtin.old:
/etc/apt/sources.list.curtin.old:## Uncomment the following two lines to add software from Canonical's
/etc/apt/sources.list.curtin.old:## 'partner' repository.
/etc/apt/sources.list.curtin.old:## This software is not part of Ubuntu, but is offered by Canonical and the
/etc/apt/sources.list.curtin.old:## respective vendors as a service to Ubuntu users.
/etc/apt/sources.list.curtin.old:# deb http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list.curtin.old:# deb-src http://archive.canonical.com/ubuntu bionic partner
/etc/apt/sources.list.curtin.old:
/etc/apt/sources.list.curtin.old:deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted
/etc/apt/sources.list.curtin.old:# deb-src http://security.ubuntu.com/ubuntu/ bionic-security main restricted
/etc/apt/sources.list.curtin.old:deb http://security.ubuntu.com/ubuntu/ bionic-security universe
/etc/apt/sources.list.curtin.old:# deb-src http://security.ubuntu.com/ubuntu/ bionic-security universe
/etc/apt/sources.list.curtin.old:deb http://security.ubuntu.com/ubuntu/ bionic-security multiverse
/etc/apt/sources.list.curtin.old:# deb-src http://security.ubuntu.com/ubuntu/ bionic-security multiverse
/etc/apt/sources.list.d/puppet5.list:# Puppet 5 bionic Repository
/etc/apt/sources.list.d/puppet5.list:deb http://apt.puppetlabs.com bionic puppet5
/etc/apt/sources.list.d/puppet5.list:
/etc/apt/sources.list.d/puppet5.list:# Puppet 5 bionic Source Repository
/etc/apt/sources.list.d/puppet5.list:# The source repos are commented out by default because we
/etc/apt/sources.list.d/puppet5.list:# do not always make sources available for all packages or
/etc/apt/sources.list.d/puppet5.list:# for all platforms. If you want to access the source repos,
/etc/apt/sources.list.d/puppet5.list:# uncomment the following line.
/etc/apt/sources.list.d/puppet5.list:#deb-src http://apt.puppetlabs.com bionic puppet5
/etc/apt/sources.list.d/foreman.list:deb http://deb.theforeman.org/ bionic 2.2
/etc/apt/sources.list.d/foreman.list:deb http://deb.theforeman.org/ plugins 2.2
/etc/apt/sources.list.d/foreman.list:
/etc/apt/sources.list.d/foreman.list:

Hah, this looks all right.

Seems we accidentally copied nightly builds at one point during the branching process of 2.5 into 2.2 :frowning:

Sorry for that!

I have removed the wrong builds and currently re-publishing the repo, you should be able to cleanly upgrade in ~30 minutes when all indexes are rebuilt and the CDN updated.

And done. apt update and you should only see 2.2 packages again.

Sorry again!

Thanks, this fixed my issues

1 Like