bench
bench copied to clipboard
No package matching 'libssl1.1' is available
Issue: Easy Install
Distro Information (Required)
Linux *** 5.15.0-41-generic #44-Ubuntu SMP Wed Jun 22 14:20:53 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04 LTS"
PRETTY_NAME="Ubuntu 22.04 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
Command Run (Required)
Task inside our own playbook ...
ansible-playbook -c local {{ bench_path.stdout }}/bench/playbooks/site.yml -vvvv -e "@{{ extra_vars.dest }}" --become --become-user={{ frappe_user }}
extra_vars ...
{
"production": true,
"container": false,
"frappe_user": "{{ frappe_user }}",
"mariadb_version": "{{ mariadb_version }}",
"node_version": "{{ node_version }}",
"mysql_root_password": "{{ mysql_root_password }}",
"without_bench_setup": true,
"run_travis": false
}
Log File (Required)
"TASK [common : install pdf prerequisites for Ubuntu >= 18.04] ******************",
"task path: /usr/local/lib/python3.10/dist-packages/bench/playbooks/roles/common/tasks/ubuntu.yml:33",
"<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root",
"<127.0.0.1> EXEC /bin/sh -c 'echo ~root && sleep 0'",
"<127.0.0.1> EXEC /bin/sh -c '( umask 77 && mkdir -p \"` echo /root/.ansible/tmp `\"&& mkdir \"` echo /root/.ansible/tmp/ansible-tmp-1659010378.9885836-12111-217799563090339 `\" && echo ansible-tmp-1659010378.9885836-12111-217799563090339=\"` echo /root/.ansible/tmp/ansible-tmp-1659010378.9885836-12111-217799563090339 `\" ) && sleep 0'",
"Using module file /usr/local/lib/python3.10/dist-packages/ansible/modules/apt.py",
"<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-8870lo1d5lne/tmpnjdg5l70 TO /root/.ansible/tmp/ansible-tmp-1659010378.9885836-12111-217799563090339/AnsiballZ_apt.py",
"<127.0.0.1> EXEC /bin/sh -c 'chmod u+x /root/.ansible/tmp/ansible-tmp-1659010378.9885836-12111-217799563090339/ /root/.ansible/tmp/ansible-tmp-1659010378.9885836-12111-217799563090339/AnsiballZ_apt.py && sleep 0'",
"<127.0.0.1> EXEC /bin/sh -c '/usr/bin/python3 /root/.ansible/tmp/ansible-tmp-1659010378.9885836-12111-217799563090339/AnsiballZ_apt.py && sleep 0'",
"<127.0.0.1> EXEC /bin/sh -c 'rm -f -r /root/.ansible/tmp/ansible-tmp-1659010378.9885836-12111-217799563090339/ > /dev/null 2>&1 && sleep 0'",
"The full traceback is:",
" File \"/tmp/ansible_apt_payload_uo75ae61/ansible_apt_payload.zip/ansible/modules/apt.py\", line 506, in package_status",
" File \"/usr/lib/python3/dist-packages/apt/cache.py\", line 283, in __getitem__",
" raise KeyError('The cache has no package named %r' % key)",
"fatal: [localhost]: FAILED! => {",
" \"changed\": false,",
" \"invocation\": {",
" \"module_args\": {",
" \"allow_change_held_packages\": false,",
" \"allow_downgrade\": false,",
" \"allow_unauthenticated\": false,",
" \"autoclean\": false,",
" \"autoremove\": false,",
" \"cache_valid_time\": 0,",
" \"clean\": false,",
" \"deb\": null,",
" \"default_release\": null,",
" \"dpkg_options\": \"force-confdef,force-confold\",",
" \"fail_on_autoremove\": false,",
" \"force\": true,",
" \"force_apt_get\": false,",
" \"install_recommends\": null,",
" \"lock_timeout\": 60,",
" \"only_upgrade\": false,",
" \"package\": [",
" \"libssl1.1\"",
" ],",
" \"pkg\": [",
" \"libssl1.1\"",
" ],",
" \"policy_rc_d\": null,",
" \"purge\": false,",
" \"state\": \"present\",",
" \"update_cache\": null,",
" \"update_cache_retries\": 5,",
" \"update_cache_retry_max_delay\": 12,",
" \"upgrade\": null",
" }",
" },",
" \"msg\": \"No package matching 'libssl1.1' is available\"",
"}",
"",
Additional context
Ubuntu 22.04 has upgraded libssl to 3, and does not propose libssl1.1
This could be fixed by conditionally doing one of two things if the ubuntu version is >=22. One is manually installing libssl1.1. The other possibility is to install the latest libssl3. Which would be a better option? I can take a shot at submitting a PR based on what is suggested.
@bkrram installing/using libssl3 is probably the way to go, but I have no idea what would be affected by this change.