After login, the following message is found in MOTD:
"Failed to connect to https://changelogs.ubuntu.com/meta-release-lts. Check your Internet connection or proxy settings"
It is caused by incorrect system certificate setting, it can be checked by issuing the following command:
python3 -c 'import ssl; print(ssl.get_default_verify_paths().openssl_cafile)'And the result shows:/usr/local/ssl/cert.pemHowever, thers is no cert.pem found on /usr/local/ssl. Fix this by add a cert.pm symbolic link to /etc/ssl/certs/ca-certificates.crtsudo ln -s /etc/ssl/certs/ca-certificates.crt /usr/local/ssl/cert.pemThen, remove old motd check by:sudo rm /var/lib/ubuntu-release-upgrader/release-upgrade-availableUpdate the motd message by:sudo /usr/lib/ubuntu-release-upgrader/release-upgrade-motdNow, it's done! Problem fixed.I think this is a better solution then modify MetaRelease.py to ignore the certificates.

沒有留言:
張貼留言