arbas18@arbas18-HP-245-G6-Notebook-PC:~$ sudo apt-get install curl
[sudo] password for arbas18:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
curl : Depends: libcurl4 (= 7.58.0-2ubuntu3.10) but it is not going to be installed
libpam-systemd : Depends: systemd (= 237-3ubuntu10.3)
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
arbas18@arbas18-HP-245-G6-Notebook-PC:~$
答案1
我会按照帮助信息中所说的去做:
sudo apt--fix-broken 安装
然后确保您已更新:
sudo apt 更新 sudo apt 升级
然后尝试再次安装 curl
sudo apt-get 安装 curl