我正在尝试执行此代码:
sudo apt-get install g++ build-essential autoconf automake automake1.9 cmake doxygen bison flex libncurses5-dev libsdl1.2-dev libreadline-dev libusb-dev texinfo libgmp3-dev libmpfr-dev libelf-dev libmpc-dev libfreetype6-dev zlib1g-dev libtool libtool-bin subversion git tcl unzip
但是我遇到了这个问题:
Package automake 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 'automake' has no installation candidate
E: Unable to locate package automake1.9
E: Couldn't find any package by glob 'automake1.9'
E: Couldn't find any package by regex 'automake1.9'
E: Unable to locate package doxygen
E: Unable to locate package libsdl1.2-dev
E: Couldn't find any package by glob 'libsdl1.2-dev'
E: Couldn't find any package by regex 'libsdl1.2-dev'
E: Unable to locate package libgmp3-dev
E: Unable to locate package libmpfr-dev
E: Unable to locate package libelf-dev
E: Unable to locate package libmpc-dev
E: Unable to locate package libtool-bin
我尝试使用sudo apt-get update
,但仍然出现此错误!有什么想法吗?
的输出grep "^deb" /etc/apt/sources.list
为:
deb http://old-releases.ubuntu.com/ubuntu/ xenial main restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ xenial-updates main restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu/ xenial universe
deb http://old-releases.ubuntu.com/ubuntu/ xenial-updates universe
deb http://old-releases.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse
deb http://old-releases.ubuntu.com/ubuntu trusty-security main restricted multiverse
deb http://old-releases.ubuntu.com/ubuntu trusty-security universe
deb http://archive.panda3d.org/ubuntu xenial main
deb-src http://archive.panda3d.org/ubuntu xenial main
deb http://archive.canonical.com/ xenial partner
deb http://archive.ubuntu.com/ubuntu xenial universe main restricted multiverse
答案1
尝试更新源列表:
Ubuntu 主要存储库
德布http://fr.archive.ubuntu.com/ubuntu/xenial 主受限宇宙多元宇宙
deb-源文件http://fr.archive.ubuntu.com/ubuntu/xenial 主受限宇宙多元宇宙