我试图安装 sendmail 但它在尝试生成 ssl 证书时挂起。我取消了安装过程,后来杀死了锁定任何新软件包无法安装的进程。
但是每当我运行apt-get install <package_name>它时,它都会返回到 sendmail 安装并尝试安装 ssl 证书。
我已经重新启动系统,但问题仍然存在。
我该如何解决?
sudo dpkg --configure -a
Setting up sendmail-bin (8.15.2-3) ...
Updating sendmail environment ...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Disabling HOST statistics file(/var/lib/sendmail/host_status).
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Could not open /etc/mail/databases(No such file or directory), creating it.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Checking filesystem, this may …Run Code Online (Sandbox Code Playgroud) 我已经从 ubuntu 18.04 到 20.04 进行了版本升级。删除了之前安装的 PHP。然后我跑
sudo apt install php-cli
但我遇到以下错误:
The following packages have unmet dependencies:
php7.4-cli : Depends: php7.4-common (= 7.4.3-4ubuntu2.4) but 7.4.8-1+ubuntu18.04.1+deb.sury.org+3 is to be installed
Depends: php7.4-json but it is not going to be installed
Depends: php7.4-opcache but it is not going to be installed
Depends: php7.4-readline but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Run Code Online (Sandbox Code Playgroud)
所以我怀疑7.4.8-1+ubuntu18.04.1+deb.sury.org+3包裹仍然有效?我已经检查了/etc/apt/sources.list目录/etc/apt/sources.list.d/,但没有找到任何与该包匹配的源。
我还应该看哪里?
编辑
apt …