jekhokie / raspberry-noaa-v2

V2 of the fantastic Raspberry Pi NOAA setup
GNU General Public License v3.0
558 stars 103 forks source link

error on python-apt dependency when running ./install_and_upgrade.sh #544

Open surfrod opened 2 years ago

surfrod commented 2 years ago

I made a change in schedule_captures.sh in order to not decode when the azimuth is greater than x or less than y (I used fixed valued and followed the existing logic to check against the azimuth env variable already referenced)

So, figured running install_and_upgrade.sh would pick up the change. Correct me if I'm wrong.

At any rate, when running install_and_upgrade.sh it throws an error (to my mind this is not related to the change I made, but again correct me if I'm wrong)

TASK [common : install dependencies] *** [WARNING]: Updating cache and auto-installing missing dependency: python-apt fatal: [localhost]: FAILED! => {"changed": false, "cmd": "apt-get install --no-install-recommends python-apt -y -q", "msg": "E: Package 'python-apt' has no installation candidate", "rc": 100, "stderr": "E: Package 'python-apt' has no installation candidate\n", "stderr_lines": ["E: Package 'python-apt' has no installation candidate"], "stdout": "Reading package lists...\nBuilding dependency tree...\nReading state information...\nPackage python-apt is not available, but is referred to by another package.\nThis may mean that the package is missing, has been obsoleted, or\nis only available from another source\nHowever the following packages replace it:\n python3-apt-dbg python3-apt python-apt-doc python-apt-common\n\n", "stdout_lines": ["Reading package lists...", "Building dependency tree...", "Reading state information...", "Package python-apt 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:", " python3-apt-dbg python3-apt python-apt-doc python-apt-common", ""]}

PLAY RECAP ***** localhost : ok=14 changed=0 unreachable=0 failed=1 skipped=3 rescued=0 ignored=0

Error: Something failed with the install - please inspect the logs above

OS Bullseye 32 bit Raspberry pi 4

Volas171 commented 2 years ago

python-2 end of life for debian happened, https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=937579

possible fixes (from the link)