E:使用 Certbot 續約證書時,軟體套件「python-virtualenv」沒有安裝候選者

E:使用 Certbot 續約證書時,軟體套件「python-virtualenv」沒有安裝候選者

我們有一台舊的 Ubuntu 14 伺服器,在上面安裝 certbot 並加密 SSL 憑證。然後我們將伺服器升級到ubuntu 20。

從那時起,每當我嘗試使用sudo certbot --apache更新命令更新或產生新憑證時,都會收到此錯誤:

Bootstrapping dependencies for Debian-based OSes... (you can skip this with --no-bootstrap)
Hit:1 http://us-west-2.ec2.archive.ubuntu.com/ubuntu focal InRelease
Hit:2 http://us-west-2.ec2.archive.ubuntu.com/ubuntu focal-updates InRelease                                
Hit:3 http://us-west-2.ec2.archive.ubuntu.com/ubuntu focal-backports InRelease                              
Hit:4 https://download.docker.com/linux/ubuntu focal InRelease                                                                             
Hit:5 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease                                                                       
Hit:6 http://ppa.launchpad.net/ondrej/php/ubuntu focal InRelease                       
Get:7 http://security.ubuntu.com/ubuntu focal-security InRelease [114 kB]
Fetched 114 kB in 2s (72.8 kB/s)   
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'python-is-python2' instead of 'python'
Note, selecting 'python-dev-is-python2' instead of 'python-dev'
Package python-virtualenv 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-virtualenv' has no installation candidate

我嘗試了無數的論壇和技巧,包括這個頂級谷歌熱門 ->https://stackoverflow.com/questions/62314556/how-to-install-virtualenv-on-ubuntu-20-04-gcp-instance,但還沒有運氣:( 有什麼想法嗎?

相關內容