I'd like to install the Brave browser, but curl cannot be installed.
E: Package 'curl' has no installation candidate
The previous question suggested I should switch to another ubuntu mirror. I switched to the best server, yet nothing changed.
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package curl 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 'curl' has no installation candidate
Updating gives the following:
Hit:1 http://ppa.launchpad.net/micahflee/ppa/ubuntu focal InRelease
Hit:2 http://archive.ubuntu.com/ubuntu focal InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
apt policy ubuntu-desktop
gives
ubuntu-desktop:
Installed: 1.450.1
Candidate: 1.450.1
Version table:
*** 1.450.1 100
100 /var/lib/dpkg/status
Kulfy, thank you. I had to run these lines first, then it got installed
apt remove -y libcurl4
apt install -y libcurl4 curl
Ruby, thank you. At this moment, the browser is being installed. I fixed the problem based on this answer https://askubuntu.com/a/1051988/1100108 Not sure if your solution leads to the same thing, but all good now.
apt policy ubuntu-desktop
? On my system it and curl are in the same repo, which suggests you may have something fundamentally broken. – Organic Marble Jul 09 '20 at 15:29curl
is in main. Try restoring default repositories – Kulfy Jul 09 '20 at 15:48