Just a quick summary for further reference:
A closer look at the package versions that 'sudo apt install' showed in
it's output pointed to Ubuntu 16.04 / xenial packages, but the OS is a
bionic / 18.04.
The output of 'sudo apt update' also showed that the system pulled the
archive index update from xenial rather than bionic.
Hence the sources.list file needed to be opened, and all 'xenial' entries
replaced by 'bionic', the package index needed to be recreated and any
remaining xenial packages in the system upgraded, like:
sudo vi /etc/apt/sources.list
[replace 'xenial' by 'bionic' and save]
sudo apt clean
[to clean up the local archive index]
sudo apt update
[to read the archive index again - this takes now a little bit longer]
sudo apt full-upgrade
[to upgrade the remaining packages]
A potential "/etc/apt/sources.list.distUpgrade" can be removed (and does
not need to be adjusted).
This fixed the apt config and finally made the system healthy again.
Cheers, Frank
On Sun, Jun 2, 2019 at 1:32 PM Gadi Ben-Avi <[email protected]> wrote:
> Hi Frank,
> Everything up to the full upgrade worked fine.
> The dry-run command returned:
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> 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:
> libffi-dev : Depends: libffi6 (= 3.2.1-4) but 3.2.1-8 is to be installed
> libssl-dev : Depends: libssl1.0.0 (= 1.0.2g-1ubuntu4.15) but
> 1.0.2n-1ubuntu5.1 is to be installed
> Depends: zlib1g-dev but it is not going to be installed
> python-pip : Depends: python:any (< 2.8)
> Depends: python:any (>= 2.7.5-5~)
> Recommends: python-all-dev (>= 2.6) but it is not going to
> be installed
> Recommends: python-setuptools but it is not going to be
> installed
> Recommends: python-wheel but it is not going to be installed
> E: Unable to correct problems, you have held broken packages.
>
> I didn't attempt the actual install.
>
> Any other ideas?
>
> Gadi
>
> -----Original Message-----
> From: Linux on 390 Port <[email protected]> On Behalf Of Frank
> Heimes
> Sent: Sunday, June 2, 2019 12:45 PM
> To: [email protected]
> Subject: Re: Problem installing package
>
> Hi Gadi,
> I 'assume' that your system and/or archive information was not up to date.
>
> Let's go step-by-step through the following:
>
> First of all fix the current situation with:
> sudo apt install --fix-broken
> or in short:
> sudo apt install -f
>
> Then I suggest to make sure that your archive information and your system
> is really up to date with:
> sudo apt update
> sudo apt full-upgrade
> [I call it usually all at once like: "sudo apt -y -q update && sudo apt -y
> -q full-upgrade"]
>
> and optionally clean your system from packages that were automatically
> installed in the past, but are no longer needed:
> sudo apt autoremove --purge
>
> Finally try again - you may try with '--dry-run' first:
> sudo apt --dry-run install python-pip libffi-dev libssl-dev This should of
> course not report any dependency errors ...
>
> And in case it's fine, re-run the install:
> sudo apt install python-pip libffi-dev libssl-dev
>
> On one of my systems I just could install these packages flawlessly ...
>
> Bye, Frank
>
> On Sun, Jun 2, 2019 at 8:13 AM Gadi Ben-Avi <[email protected]> wrote:
>
> > Hi,
> > I am having problems installing a package on Ubunti 18.04 LTS running on
> Z.
> > I issue the command:
> > sudo apt-get install python-pip libffi-dev libssl-dev
> >
> > and get:
> > Reading package lists... Done
> > Building dependency tree
> > Reading state information... Done
> > 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:
> > libffi-dev : Depends: libffi6 (= 3.2.1-4) but 3.2.1-8 is to be
> > installed libssl-dev : Depends: libssl1.0.0 (= 1.0.2g-1ubuntu4.15) but
> > 1.0.2n-1ubuntu5.1 is to be installed
> > Depends: zlib1g-dev but it is not going to be installed
> > Recommends: libssl-doc but it is not going to be
> > installed python-pip : Depends: python:any (< 2.8)
> > Depends: python:any (>= 2.7.5-5~)
> > Recommends: python-all-dev (>= 2.6) but it is not going
> > to be installed
> > Recommends: python-setuptools but it is not going to be
> > installed
> > Recommends: python-wheel but it is not going to be
> > installed
> > E: Unable to correct problems, you have held broken packages.
> >
> > Does anyone have an idea how to fix this?
> >
> > Gadi
> >
> > ----------------------------------------------------------------------
> > For LINUX-390 subscribe / signoff / archive access instructions, send
> > email to [email protected] with the message: INFO LINUX-390 or
> > visit
> > http://www2.marist.edu/htbin/wlvindex?LINUX-390
> >
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions, send
> email to [email protected] with the message: INFO LINUX-390 or visit
> http://www2.marist.edu/htbin/wlvindex?LINUX-390
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO LINUX-390 or
> visit
> http://www2.marist.edu/htbin/wlvindex?LINUX-390
>
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www2.marist.edu/htbin/wlvindex?LINUX-390