Я попытался установить Flex и Bison, но получил эту ошибку: не могу найти файл, а также использую программный центр для этого, но произошла ошибка аутентификации.
Я не знаю, какой ресурс выбрать. когда я запускаю эту команду в терминале:
sudo apt-get update
это результат:
Failed to fetch http://archive.canonical.com/dists/lucid/Release.gpg Unable to connect to 127.0.0.1:8080:
Моя среда:
$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
http_proxy="http://127.0.0.1:8080/"
https_proxy="https://127.0.0.1:8080/"
ftp_proxy="ftp://127.0.0.1:8080/"
socks_proxy="socks://127.0.0.1:8080/"
$ /etc/apt/apt.conf
Acquire::http::proxy "http://127.0.0.1:8080/";
Acquire::https::proxy "https://127.0.0.1:8080/";
Acquire::ftp::proxy "ftp://127.0.0.1:8080/";
Acquire::socks::proxy "socks://127.0.0.1:8080/";
Если Вашим распределением является Ubuntu Lucid.
Тест это:
Открывают терминал,
Нажатие Ctrl + Высокий звук + Выполнение T
это:
sudo -i
nano /etc/apt/sources.list
В открытом файле, удалите содержание и вставьте это:
## Uncomment the following two lines to fetch updated software from the network
deb http://old-releases.ubuntu.com/ubuntu lucid main restricted
deb-src http://old-releases.ubuntu.com/ubuntu lucid main restricted
## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted
deb-src http://old-releases.ubuntu.com/ubuntu lucid-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://old-releases.ubuntu.com/ubuntu lucid universe
deb-src http://old-releases.ubuntu.com/ubuntu lucid universe
deb http://old-releases.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://old-releases.ubuntu.com/ubuntu lucid-security main restricted
deb http://old-releases.ubuntu.com/ubuntu lucid-security universe
deb-src http://old-releases.ubuntu.com/ubuntu lucid-security universe
deb http://old-releases.ubuntu.com/ubuntu lucid multiverse
deb-src http://old-releases.ubuntu.com/ubuntu lucid multiverse
deb http://old-releases.ubuntu.com/ubuntu lucid-backports main restricted universe multiverse
Ctrl + O , сохраните файл. Ctrl + X , закройте нано.
Продолжаются выполненный в терминале:
sudo -i
apt-get update
apt-get dist-upgrade
apt-get install flex bison
apt-get clean
, Если Вашим распределением не является Ubuntu Lucid, изменение Lucid к соответствующему имени.
, Если ни одно из этого не работает
(Ясные) пакеты Загрузки:
http://mirrors.kernel.org/ubuntu/pool/main/b/bison/bison_2.4.1.dfsg-3_i386.deb (32 бита) http://mirrors.kernel.org/ubuntu/pool/main/b/bison/bison_2.4.1.dfsg-3_amd64.deb (64 бита) http://mirrors.kernel.org/ubuntu/pool/main/f/flex/flex_2.5.35-9_i386.deb (32 бита) http://mirrors.kernel.org/ubuntu/pool/main/f/flex/flex_2.5.35-9_amd64.deb (64 бита)
И устанавливают их с:
sudo -i
cd /home/user/Downloads
dpkg -i *.deb
По некоторым причинам у Вас есть настроенные настройки прокси. Для принятия Вас не нужны они, Настройки открытой системы, перейдите к Сегменту сети, установите настройки Proxy ни на Один и нажмите Apply в масштабе всей системы :