Frut02 Posted February 24, 2015 Posted February 24, 2015 Hi, I was asked to set up a Debian virtual machine for the computing course in school. Set up wasnt a problem. It does everything they need to do for the assesment create folders and create users ect. One thing they need to do is install tree so we are doing sudo apt-get install tre. The message i get is E: unable to locate package tree I have made sure that the proxy settings are correct but i still get presented with that message. I have also tried to add in additional sources into the sources.list but i still get the same result. Does anyone have any ideas how to make it install the darn program? Thanks in advance! Nick
bladedanny Posted February 24, 2015 Posted February 24, 2015 In terminal type export http_proxy="http://proxy:port" Then try running sudo apt-get update Then try to install the program.
Frut02 Posted February 24, 2015 Author Posted February 24, 2015 Hi, I've just tried that, and i got this... i noticed that it had removed my proxy settings from the system. added them back in and reran the update looked like it was going to do something then this
jinnantonnixx Posted February 24, 2015 Posted February 24, 2015 Looks like your networking is wonky. Type this ip addr and post the result.
jinnantonnixx Posted February 24, 2015 Posted February 24, 2015 (edited) Another thing, apt (the tool to install software) can use its own configuration file. I tend to configure this independently of other settings. I'm betting that your proxy expects domain credentials, so here's how you do this. Edit the file /etc/apt/apt.conf (e.g. sudo gedit /etc/apt/apt.conf) and paste these values in, substituting your values where appropriate. Don't forget the semi-colons on the end of the lines. Acquire::http::proxy "http://DOMAIN\USERNAME:PASSWORD@PROXYSERVER:PORT/"; Acquire::https::proxy "http://DOMAIN\USERNAME:PASSWORD@PROXYSERVER:PORT/"; Edited February 24, 2015 by jinnantonnixx
cpjitservices Posted February 24, 2015 Posted February 24, 2015 looks like DNS settings to me... try using 8.8.8.8. on the system network settings. See if you can ping the repos.
Geoff Posted February 25, 2015 Posted February 25, 2015 You VM is trying to use IPv6. Do you have full IPv6 connectivity across your LAN and out to the Internet?
Frut02 Posted February 25, 2015 Author Posted February 25, 2015 I have stopped it using IPv6 as far as i can see its using a DHCP address that it is getting from my network adapter i can ping the address and everything else.
CyberDrac Posted February 25, 2015 Posted February 25, 2015 We had to ensure that, as there was no opportunity for the user to type in credentials, all the necessary repositories had to be put into Authentication Exception on our filtering device
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now