openwisp / ansible-openwisp2

Ansible role that installs and upgrades OpenWISP.
https://openwisp.io/docs/dev/ansible/
BSD 3-Clause "New" or "Revised" License
474 stars 136 forks source link

FAILED! => {"changed": false, "msg": "Failed to update apt cache: E:The repository 'https://repos.influxdata.com/ubuntu lunar Release' does not have a Release file."} #437

Closed Bapth-R closed 1 year ago

Bapth-R commented 1 year ago

Hi, I had this error when install openwisp2. I followed every step in the readme. Ansible is installed and up to date. Python version is 3.11. I'm trying to install on ubuntu22.04 (focal) but it's seems that when I try to install it, it "redirect" me to ubuntu23.04 (lunar) who doesn't have a influxdb repo. Here the error:

TASK [openwisp.influxdb : Install logrotate] *************************************************************************************************************************************************************************
ok: [192.168.1.81]

TASK [openwisp.influxdb : Install system dependencies] ***************************************************************************************************************************************************************
ok: [192.168.1.81]

TASK [openwisp.influxdb : Add influxdb key] **************************************************************************************************************************************************************************
ok: [192.168.1.81]

TASK [openwisp.influxdb : Add influxdb repo] *************************************************************************************************************************************************************************
fatal: [192.168.1.81]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: E:The repository 'https://repos.influxdata.com/ubuntu lunar Release' does not have a Release file."}

PLAY RECAP ***********************************************************************************************************************************************************************************************************
192.168.1.81               : ok=13   changed=0    unreachable=0    failed=1    skipped=23   rescued=0    ignored=0   

Do you know how to solve this ? Thanks :)

nemesifier commented 1 year ago

Tested on Debian (Buster, Bullseye), Ubuntu (18/20/22 LTS). Please use an officially supported release (eg: Ubuntu 22.04 LTS).

vineetiotina commented 1 year ago

Hey @nemesisdesign I am also getting the same error where as I am using Ubuntu official supported version (18.04.6 LTS). Any suggestion for me to fix it? Thanks

nemesifier commented 1 year ago

@vineetiotina the error reported here mentions "lunar", which is the code name of Ubuntu 23, so I suppose the error you're getting is different, please share the details of the error you're getting, but I suggest to use the support channels, because we use github for bugs rather than usage issues.

vineetiotina commented 1 year ago

Hi @nemesisdesign Thanks for the response, Let me join the support channels.