reticulatedpines / magiclantern_simplified

A Git based version of Magic Lantern, for those unwilling or unable to work using Mercurial. The vast majority of branches have been removed, with those thought to be important brought in individually and merged.
GNU General Public License v2.0
142 stars 50 forks source link

(QEMU) Package `python` has no installation candidate, Ubuntu 22.04.1 LTS #76

Closed JOELwindows7 closed 1 year ago

JOELwindows7 commented 1 year ago

Today's Ubuntu LTS of 22.04 LTS lacks candidate for package installation named Python

joelwindows7@JOEL-ROG-GL503GE:~/sauce/simplified/magic-lantern/contrib/qemu$ ./install.sh

This will setup QEMU for emulating Magic Lantern.
Thou shalt not be afraid of compiling stuff on Linux ;)
Continue? [y/n] y

*** You have a valid ARM GCC/GDB already installed - using that one.
*** Checking dependencies for Ubuntu...

Not installed: python
Not installed: python-pip
Not installed: python-docutils

*** Installing dependencies for Ubuntu...

Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
Hit:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
Hit:3 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
Hit:4 http://security.ubuntu.com/ubuntu jammy-security InRelease
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  2to3 python2-minimal:i386 python2:i386 python2-minimal python2 dh-python python-is-python3

Package python-docutils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python' has no installation candidate
E: Package 'python-docutils' has no installation candidate
joelwindows7@JOEL-ROG-GL503GE:~/sauce/simplified/magic-lantern/contrib/qemu$ uname -a
Linux JOEL-ROG-GL503GE 5.15.68.1-microsoft-standard-WSL2 #1 SMP Mon Sep 19 19:14:52 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
joelwindows7@JOEL-ROG-GL503GE:~/sauce/simplified/magic-lantern/contrib/qemu$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy
joelwindows7@JOEL-ROG-GL503GE:~/sauce/simplified/magic-lantern/contrib/qemu$

Then, you cannot detect if package named just python this way anymore.

Okay, what Python this script uses? yeah just detect it by explicit name like python2, python3 whatever.. I think..

reticulatedpines commented 1 year ago

I previously fixed ML code so that you don't need "python", but contrib/qemu is deprecated on my repo and will be removed in the future, so I have no interest in fixing this. If someone else wants to submit a fix I'll consider the changes and probably take them, it's a low risk area.

I greatly prefer qemu 4, I wrote some install instructions for this: https://github.com/reticulatedpines/qemu-eos/tree/qemu-eos-v4.2.1/magiclantern

Qemu 4 is not as mature for EOS work as qemu 2, but it's a lot easier to work with in all other ways (qemu 2 is so old it's difficult to satisfy dependencies, it's long unsupported by upstream, etc). If you have problems with qemu 4 I will try to fix them.