Ubuntu has the problem of apt-get: Package has no installation candidate

When I installed vim today, the problem of Package 'vim' has no installation candidate appeared

 

The solution is as follows:
# apt-get update
# apt-get upgrade
# apt-get install <packagename>

This way you can use apt-get normally~

 

 

Author: Xinxin Xin, published in   Blog Park

Please indicate the source when reprinting. Email communication is welcome: [email protected]

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325016600&siteId=291194637