How to run “sudo apt-get update” through proxy in commandline?

Let’s learn how to run “sudo apt-get update” through proxy in commandline. The most accurate or helpful solution is served by Unix and Linux.

There are ten answers to this question.

Best solution

How to run “sudo apt-get update” through proxy in commandline?

In my office I want to update and download through wget and here they are using a proxy. How can I get wget to use the proxy from the command-line?

Answer:

Either export the http_proxy environment variable as in export http_proxy=http://myproxy:port or add...

Read more

Renjith G at Unix and Linux Mark as irrelevant Undo

Other solutions

Programming Club IIT Kanpur: How can I get  updates in ubuntu 10.10?

I am using Ubuntu 10.10 via Vmware in windows 8. Also I am using no proxy in both virtual machine and Windows. I get this message when I run 'sudo apt-get update' - ' Some index files failed to download,they have been ignored or older ones used instead...

Answer:

:-/ You are using an outdated version of ubuntu which is no longer supported, just dump it and move...

Read more

Adarsh Jagannatha at Quora Mark as irrelevant Undo

Ubuntu 12.04 LTS: Why does an update to sudo not require administrator permission to install?

Recently Ubuntu flashed an update on screen. The only update in the list was to the sudo command. I clicked 'Update', but I was surprised that I wasn't then prompted to enter my administrator password. I would assume that sudo would contain a way to...

Answer:

If you had very recently used a sudo-like raise in privileges then it may not necessarily ask for your...

Read more

Richard Watson at Quora Mark as irrelevant Undo

How do I run proxy applications and softwares in Windows 8 in my college through proxy address provided by the college?

I own a Windows laptop (Due to some issues I'm not able to install Ubuntu and No, Virtual Machine isn't working too). My college provides proxy server addresses for students run internet and internet browsing and streaming is smooth as cheese. But when...

Answer:

I'd recommend proxifier http://www.proxifier.com/ . You can get a month trial version for free. Look...

Read more

Saurabh Tewari at Quora Mark as irrelevant Undo

How to run a script as sudo?

I'm trying to run a script for installing bit.trip.runner for Linux, however I do not know how to run a script as sudo, how do I run a script in sudo, its in a folder on a desktop.

Answer:

$ sudo script-name [optional parameters]

Read more

Toad at Yahoo! Answers Mark as irrelevant Undo

Unable to update windows vista or defender, manually or automatically. spy ware will not run or update.?

I am working on my mothers computer, im pretty sure that she has a virus that keeps me from running any programs to get ride of it. I download multiple spy ware programs and they tell me that they could not install because it was invalid exe. Windows...

Answer:

Hello, see if you can use System Restore to roll back the registry to before the infection occurred...

Read more

Jman at Yahoo! Answers Mark as irrelevant Undo

Sims 3 same update over and over won't run? please help!?

Today I got a new laptop (HP Pavilion g series) and I installed Sims 3 along with an expansion pack. It said 'the version of the game that you are playing is incompatible with the data. Please update your game' so I did the update. After the update completed...

Answer:

Hi! You can go on a live chat with EA (probably not today or tomorrow) with a EA Represntive, that will...

Read more

Sharkie at Yahoo! Answers Mark as irrelevant Undo

How to specify a path to run a command anywhere?

hello I cannot run simple bash command like echo, make or configure. Example: to install one package. I did sudo apt-get install build-essential and I saw build-essential is already the newest version. I did sudo aptitude update and sudo aptitude install...

Answer:

try running the command which COMMANDNAME for example, which echo this will tell you the full path of...

Read more

tiziano at Yahoo! Answers Mark as irrelevant Undo

Ok, listen, I'm trying to manually update my virus-scan (Trend) and I need to know what a 'Proxy' is and where

to find it and I also need to know what a 'port' is and how to find it. Please help, I have some adware, that i cant get rid of. My virus scan says I need to update. To update, I need to know 'Proxy' and 'Port'. Please help me, I am very frustrated....

Answer:

It seems you are connected to Internet via a proxy server. A Proxy server is a server that directs all...

Read more

honestly... at Yahoo! Answers Mark as irrelevant Undo

How can I grant a user access to run /etc/init.d/apache2 reload without giving them sudo or root?

Another basic Ubuntu (10.4) question: I'm using automated deployment scripts to roll out changes to my site (written using Fabric, running over SSH with public key authentication). At the moment the end of each script does a "sudo /etc/init.d/apache...

Answer:

Use NOPASSWD tag and allow execution of only single command (including reload parameter) necessary....

Read more

Myroslav Opyr at Quora Mark as irrelevant Undo

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.