how to install flex and bison: error can not locate file [duplicate]
Matthew Barrera
i tried to install flex and bison but i got this error : can not locate the file & also i use software center to do this but authenticate error occur.
i don't know which resource i should choose. when i run this command in terminal:
sudo apt-get updatethis is the result:
Failed to fetch Unable to connect to 127.0.0.1:8080:My environment:
$ cat /etc/environment
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
http_proxy=""
https_proxy=""
ftp_proxy="ftp://127.0.0.1:8080/"
socks_proxy="socks://127.0.0.1:8080/"
$ /etc/apt/apt.conf
Acquire::http::proxy "";
Acquire::https::proxy "";
Acquire::ftp::proxy "ftp://127.0.0.1:8080/";
Acquire::socks::proxy "socks://127.0.0.1:8080/"; 7 2 Answers
If your distribution is Ubuntu Lucid.
Test this:
Open a terminal,
Press Ctrl+Alt+T
Run it:
sudo -i
nano /etc/apt/sources.listIn the open file, delete the content and paste this:
## Uncomment the following two lines to fetch updated software from the network
deb lucid main restricted
deb-src lucid main restricted
## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb lucid-updates main restricted
deb-src 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 lucid universe
deb-src lucid universe
deb lucid-security main restricted
deb-src lucid-security main restricted
deb lucid-security universe
deb-src lucid-security universe
deb lucid multiverse
deb-src lucid multiverse
deb lucid-backports main restricted universe multiverseCtrl + O, save file. Ctrl + X, close nano.
Continue run in a terminal:
sudo -i
apt-get update
apt-get dist-upgrade
apt-get install flex bison
apt-get cleanIf your distribution is not Ubuntu Lucid, change Lucid to appropriate name.
If none of this works
Download packages (Lucid):
(32 bit) (64 bit) (32 bit) (64 bit)
And install them with:
sudo -i
cd /home/user/Downloads
dpkg -i *.deb 0 For some reason, you have proxy settings configured. Assuming you don't need them, open System Settings, go to the Network section, set Proxy settings to None and click Apply system wide: