Lambda Stack Installation Failure due to package version

Hello,
I’m following the instructions on a book for getting a basic machine learning setup. Previous installs were a diaster and managed to nearly break ubuntu (due to the root partition not being big enough), however I’ve rescued the system and I’m trying again. Currently I have 5.5gb free space so I figured I should be able to install the tools I need and store my code and models in another partiton.

I followed the steps outlined on the page by dropping the installation lines into a .sh file. After rebooting, I found that no tools were installed but drivers were upgraded. I tried to manually install the cuda stack and found out that the command failed

raymond@fathpc2018:~$ sudo apt-get install --yes lambda-stack-cuda
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:
 lambda-stack-cuda : Depends: python-keras but it is not going to be installed
                     Depends: python3-keras but it is not going to be installed
                     Depends: python-theano but it is not going to be installed
                     Depends: python3-theano but it is not going to be installed
                     Depends: python-sklearn but it is not going to be installed
                     Depends: python3-sklearn but it is not going to be installed
                     Depends: python-pandas but it is not going to be installed
                     Depends: python3-pandas but it is not going to be installed
                     Depends: python-opencv but it is not going to be installed
                     Depends: python3-opencv but it is not going to be installed
                     Depends: python-tensorboard but it is not going to be installed
                     Depends: python3-tensorboard but it is not going to be installed
                     Depends: tensorboard but it is not going to be installed
                     Depends: caffe-cuda but it is not going to be installed
                     Depends: python-torch-cuda but it is not going to be installed
                     Depends: python3-torch-cuda but it is not going to be installed
                     Depends: python-torchvision-cuda but it is not going to be installed
                     Depends: python3-torchvision-cuda but it is not going to be installed
                     Depends: python-tensorflow-cuda but it is not going to be installed
                     Depends: python3-tensorflow-cuda but it is not going to be installed
                     Depends: tensorflow-tools-cuda but it is not going to be installed
                     Depends: python-pygpu but it is not going to be installed
                     Depends: python3-pygpu but it is not going to be installed
                     Depends: python-pycuda but it is not going to be installed
                     Depends: python3-pycuda but it is not going to be installed
                     Depends: python-skcuda but it is not going to be installed
                     Depends: python3-skcuda but it is not going to be installed
                     Recommends: lambda-desktop but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

After some googling I found out to manually specify the packages to see which packages were having issues


So it looks like I either only have a 7.5 gcc repository avalible in my sources or I already have a 7.5 gcc installed. I think it’s probaly the first.
My first thoughts were that this was because my /etc/apt/sources.list was messed up after a failed ubuntu 20 upgrade. However I did manage to add back all the bionic sources through the “Software & Updates” application. I have not run into package installation errors until now. I googled around for possible issues and I still came upon the /etc/apt/sources.list being the issue but wasn’t able to find any problems with it. I enabled everything that I thought that may help in “Software & Updates”

Below is my /etc/apt/sources.list

# deb cdrom:[Ubuntu 18.04.1 LTS _Bionic Beaver_ - Release amd64 (20180725)]/ bionic main restricted

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
# deb http://us.archive.ubuntu.com/ubuntu/ focal main restricted

## Major bug fix updates produced after the final release of the
## distribution.
# deb http://us.archive.ubuntu.com/ubuntu/ focal-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ focal universe
# deb http://us.archive.ubuntu.com/ubuntu/ focal-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
# deb http://us.archive.ubuntu.com/ubuntu/ focal multiverse
# deb http://us.archive.ubuntu.com/ubuntu/ focal-updates multiverse

## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://us.archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
deb http://archive.canonical.com/ubuntu bionic partner
deb-src http://archive.canonical.com/ubuntu bionic partner

# deb http://security.ubuntu.com/ubuntu focal-security main restricted
# deb http://security.ubuntu.com/ubuntu focal-security universe
# deb http://security.ubuntu.com/ubuntu focal-security multiverse
deb http://archive.ubuntu.com/ubuntu bionic main universe restricted multiverse
deb-src http://archive.ubuntu.com/ubuntu bionic universe restricted main multiverse #Added by software-properties

I also spent some time trying to google for similar issues when installing the lambda stack. I found this post but no one provided an answer
https://deeptalk.lambdalabs.com/t/lambda-stack-installation/547
Thanks,
javaarchive

1 Like