Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1055  / 2 Years ago, tue, october 4, 2022, 3:57:45

I am running Windows on a network that has a corporate authenticating proxy (NTLM). I have setup CNTLM and verified that it works fine with Windows.



I am using VirtualBox and have installed Ubuntu 13.10. I also changed the network proxy settings to add my Windows host as the HTTP Proxy. I am able to open Firefox and browse the public internet using the Ubuntu VM. When I turn off the proxy, I am unable to browse, so I know the proxy must be working and configured correctly.



Now, I'm trying to install node.js:



$ sudo apt-get install nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package nodejs
$


When I try a sudo apt-get update, I see the following:



0% [Connecting to archive.ubuntu.com (91.189.91.13)] [Connecting to us.archive.


and it just hangs there...



Any guidance is appreciated.


More From » networking

 Answers
6

The unable to locate package is not a network problem.



It appears if apt unable to find the package due typo or if you forget to update your package list (first time installation is included here).



But when your vm couldn't connect to ubuntu repos it seems you have not set up apt proxy you can do it by adding this line to /etc/apt/apt.conf/ file :



Acquire::http::Proxy "http://yourproxyaddress:proxyport";


[#26193] Wednesday, October 5, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hical

Total Points: 498
Total Questions: 106
Total Answers: 117

Location: Comoros
Member since Tue, Mar 14, 2023
1 Year ago
;