软件包未安装,出现许多“无法定位”错误

软件包未安装,出现许多“无法定位”错误

我正在尝试使用以下命令安装软件包apt-get

root@ubuntu:/# sudo apt-get install build-essential libssl-dev libcurl4-gnutls-dev libexpat1-dev gettext unzip
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcurl4-gnutls-dev 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: Unable to locate package build-essential
E: Unable to locate package libssl-dev
E: Package 'libcurl4-gnutls-dev' has no installation candidate
E: Unable to locate package libexpat1-dev
E: Unable to locate package gettext
E: Unable to locate package unzip

我的主要目标是安装包make,我需要手动安装较低版本的 PHP

事情是这样的:

root@ubuntu:~/php-5.4.31# make
The program 'make' is currently not installed. You can install it by typing:
apt-get install make

然后我继续做apt-get install make

root@ubuntu:/# apt-get install make
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package make 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 'make' has no installation candidate

我在虚拟机 (Hyper-V) 上运行 Ubuntu 14.04.1 LTS,希望有帮助

答案1

几天前我也遇到过同样的问题。尝试运行

# apt-get update

您的 apt-repository 已过时。这可能是问题所在。

相关内容