'apt-get' does not work with Proxy

1

Description:
In this class Eli the Computer Guy shows you why Web Proxy Servers are useful, and how to setup a new SQUID Proxy Server. He discusses the different uses of Web Proxy Servers, and demonstrates the basic steps to set one up, and have a Windows PC connect to it.

Notes:
Squid uses
Cache -- The SQUID Proxy Server can Cache web files from all eb Requests and then transefer those chaced files locally if another host requests the same file
ACL Control -- Access Control Lists allow you to specify whether certain websites can be accessed.
Bypass Web filters -- You can connect to a Proxy Server on a different network to bypass Web Filers on your LAN

Squid Configuration Setup on Server Setup (Note: These steps are shown using Ubuntu 12.04 Server Edition. The basic steps are the same on all Linux distributions, but the actual commands may be slightly different. Please just use Google to find the correct commands if these do not work for...

0 0
2

When I try to do apt-get update I get the following

0% [Connecting to 172.16.0.1 (172.16.0.1)] [Connecting to 172.16.0.1 (172.16.0.

The terminal freezes at this output and I have to do ctrl-C to stop it.

When using the synaptic package manager and do a "reload package information" I also get a frozen dialog "download package information" which after a while tells me "W: Failed to fetch http://ppa.launchpad.net/freefilesync/f ... /InRelease" for every single repo.

The IP 172.16.0.1 is the proxy server I have to use when at work. However, I turned the global proxy settings (/etc/apt/apt.conf.d/95proxies renamed; /etc/environment has no proxy info) and in the synaptic package manager in settings>network is set to "direct connection to the internet".

So here my question: where are the hidden remaining proxy settings that cause the apt-get command to look for 172.16.0.1?

Thanks for your...

0 0
3

Recent releases

Release Notes: Support for HTTP/FTP backends was added, and there is a new script, apt-proxy-import, for importing existing .debs into apt-proxy's cache.

Release Notes: More efficient updating of package files for HTTP/FTP, and fixes for two lockfile problems.

Release Notes: Support for HTTP/FTP backends, and a new script (apt-proxy-import) to import existing .debs into the apt-proxy archive.

Release Notes: This release adds support for apt-file. It is installable on Debian Potato again. Older cache file versions could be purged later than configured. There are minor packaging fixes.

Release Notes: More advanced cache management with MAX_VERSIONS and file corruption detection, new log and config file command line options, bugfixes to streaming code and cache management, out-of-the-box readiness (user, cache directory, and logfile are created during first installation), and documentation...

0 0
4

I'm trying to add the ppa repository (as a root) with the following command:

export HTTP_PROXY="http://:my_pass@165.x.x.232:8080"
add-apt-repository ppa:nilarimogard/webupd8

But there is an error:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 125, in
ppa_info = get_ppa_info_from_lp(user, ppa_name)
File "/usr/lib/python2.7/dist-packages/softwareproperties/ppa.py", line 84, in get_ppa_info_from_lp
curl.perform()
pycurl.error: (56, 'Received HTTP code 407 from proxy after CONNECT')

Doesn't matter if @ is escaped or not.

When added credentials into .curlrc
cat ~/.curlrc
proxy = 165.x.x.232:8080
proxy-user = :mypass0

It seems to work for plain curl command, but not for add-apt-repository (pycurl).

CURL HEADERS

Headers sent:
CONNECT launchpad.net:443 HTTP/1.1
Host: launchpad.net:443
Proxy-Authorization: Basic...

0 0
5

It appears that disabling proxy settings is buggy on ubuntu (till atleast ubuntu 14.04). Why i say this is because when we disable proxy through GUI like this:

we would think that we have

completely removed proxy settings from the system

. But it does not appear to be so because in most cases

apt-get

still uses the proxy settings to fetch repositories and this is quite a trouble. There is a workaround if you do not want to clear the proxy settings from apt-get , and that is:

1) Download the package straight from the wesite ( you can reach there by simply naming the package name on google )

2) Open terminal,

cd

to that directory and run

sudo dpkg -i


I have tried the above method and it works good, but I don't prefer it. I like apt-get doing all this work for me (:P).

So, I searched a lot for solutions to my problem and implemented the solutions proposed and none seemed to work except this:

1) $ sudo...

0 0
6

If you are a Debian-based GNU/Linux user, then you’re probably familiar with synaptic and apt-get to install application from software repositories. This post focussed on how to use apt-get/synaptic behind proxy server/firewall which under normal circumstances, you’re unable to use apt-get.

If you’re using Synaptic

Open up your Synaptic package manager (usually as root), go to Settings-> Preference -> Network. Enter your proxy server details like : username:password@proxyserver.net, and put the proxy server port (usually 8080).

If you’re using command-line apt-get

Edit your /etc/bash.bashrc file as root.

Put these line at the end of your /etc/bash.bashrc file :

export http_proxy=http://username:password@proxyserver.net:port/ export ftp_proxy=http://username:password@proxyserver.netport/

You can omit the username:password, if your proxy server has no password. That’s all for today! Happy apt-get-ing!

debian,ubuntu,knoppix, mepis,...

0 0
7

What did you do differently installing the Azure Ubuntu server? I can't get it to work. Same bind error at the end of the docker package installation.

Create new Ubuntu 14.04LTS instance sudo apt-get update sudo apt-get install lxc wget bsdtar curl sudo apt-get install linux-image-extra-$(uname -r) sudo modprobe aufs Run curl -sSL https://get.docker.com/ | sh && sudo usermod -aG docker $(who am i | awk '{print $1}') && sudo git clone https://github.com/ab77/netflix-proxy /opt/netflix-proxy && cd /opt/netflix-proxy && ./build.sh -c 88.217.181.52

Full listing:

curl -sSL https://get.docker.com/ | sh && sudo usermod -aG docker $(who am i | awk '{print $1}') && sudo git clone https://github.com/ab77/netflix-proxy /opt/netflix-proxy && cd /opt/netflix-proxy && ./build.sh -c 88.217.181.52 apparmor is enabled in the kernel and apparmor utils were already installed + sudo -E sh -c apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys...
0 0
8

Approx is a proxy server for Debian archive files. Having such a service within your LAN with multiple Debian like systems will provide you with number of benefits such as update speed since any update package needs to be downloaded only once. This will also lower down Internet download usage requirements, etc. This article will describe a process of approx setup for Ubuntu Linux.

As any other installation from standard Ubuntu repository, installation of the approx apt proxy server is a fairy simple process. Install the approx apt proxy server with:

$ sudo apt-get install approx

The above command will also install all prerequisites including Internet superserver inetd, which is used to invoke the approx server.

Approx is by default using port 9999. Once you finish with installation you can confirm whether the server is up and running with the netstat command and check for port 9999.

$ netstat -ant | grep 9999
tcp 0 0 0.0.0.0:9999 0.0.0.0:* ...
0 0
9

export http_proxy=http://ip_address:port
but no luck so far
Regards
Adam

----- Original Message -----
From: "Leonardo Carneiro - Veltrac"
To:
Sent: Monday, March 29, 2010 7:48 PM
Subject: Re: [squid-users] Apt-get Issue through squid

> Also, you can educate your users so they know that your network has a

> proxy and to setup the proxy on the apps is a necessary step to get to

> work. Proxy is not a 'out-of-the-earth' thing now days and most of the

> users (on a enterprise network, at least) will be able to understand this.

>

>

> Adam@Gmail wrote:

>> Hi there,

>> Thanks for your reply, I was merely asking if anyone has or had the same

>> problem before, or anyone who might have a solution, of course

>> If I stop squid now and disable it reconfigure my system to what it was

>> before of course I will get the updates and the access to the...

0 0
10

Acquire::http { Proxy "http://proxy-apt.internal:3142"; };

sudo apt-get install bigbluebutton

167 if ! wget --continue --tries=1 --connect-timeout=60 --read-timeout=300 $QUIET_ARG --directory-prefix . --no-directories --no-background --progress=dot:default $URLROOT$ff ; then

34 cd /usr/local/bigbluebutton/core

35

36 GEMS="builder bundler"

37 for gem in $GEMS; do

38 if ! gem list $gem | grep -q $gem; then

39 gem install $gem

40 fi

41 done

https_proxy = http://proxy.internal:3128/

http_proxy = http://proxy.internal:3128/

http_proxy: http://proxy.internal:3128

ERROR: While executing gem ... (Gem::InstallError)

gem "streamio-ffmpeg" is not installed

gem "streamio-ffmpeg", '2.0.0'

gem "streamio-ffmpeg",...

0 0
11

A Google search can give you the definition for almost any terminal command, as can --help in the terminal. For example,

apt-get --help

sudo apt-get update essentially has three parts:

sudo

performs the following command with super-user (root) capabilities. Many actions that require modifying system files or installing applications require extra permissions to go through.

apt-get

is a command-line tool which Ubuntu uses to install, remove, and manage software packages

update

is an option for the apt-get program to use which updates the package lists from a server on the internet. The package lists provide the apt-get utility with important information about the software packages that you can install using apt-get. apt-get uses these lists to determine which software to install when given a command to install. For example

sudo apt-get install guake

would install the Guake terminal as it is currently listed in my computer's local software lists....

0 0
12

This article applies to all supported versions of Ubuntu

Package management via apt-get runs hand-in-hand with the /etc/apt/sources.list file. For information on editing or updating your sources list see SourcesList.

Introduction

This page describes how to handle the packages on your system using apt-get and related commands. For example, you can install a new package, remove an installed package, or update all installed packages to the latest versions.

Commands

Installation commands

apt-get install This command installs a new package.apt-get build-dep

This command searches the repositories and installs the build dependencies for . If the package is not in the repositories it will return an error.

aptitude install

Aptitude is an Ncurses viewer of packages installed or available. Aptitude can be used from the command line in a similar way to apt-get. Enter man aptitude for more information.

APT and aptitude will accept...
0 0
13

What are you trying to do that requires you to databind to the ActualWidth property? This is a known issue with Silverlight, and there is no simple workaround.

One thing that could be done is to set up the visual tree in such a way that you do not need to actually set the Width of the Rectangle, and just allow it to stretch to the appropriate size. So in the example above, if you remove the Canvas (or change the Canvas to some other Panel) and leave the Rectangle's HorizontalAlignment set to Stretch, it will take up all of the available width (effectively the Width of the Grid).

However, this may not be possible in your particular case, and it may really be necessary to set up the databinding. It has already been established that this is not possible directly, but with the help of a proxy object, we can set up the required binding. Consider this code:

public class ActualSizePropertyProxy : FrameworkElement, INotifyPropertyChanged { public event...
0 0
14

This worked for me, in windows XP behind a corporate firewall.

I didnt have to install any local proxy or any other software besides git v1.771 from http://code.google.com/p/msysgit/downloads/list?can=3

$ git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080 $ git config --system http.sslcainfo /bin/curl-ca-bundle.crt $ git remote add origin https://mygithubuser:mygithubpwd@github.com/repoUser/repoName.git $ git push origin master

proxyuser= the proxy user I was assigned by our IT dept, in my case it is the same windows user I use to log in to my PC, the Active Directory user

proxypwd= the password of my proxy user

proxy.server.com:8080 = the proxy name and port, I got it from Control Panel, Internet Options, Connections, Lan Settings button, Advanced button inside the Proxy Server section, use the servername and port on the first (http) row.

mygithubuser = the user I use to log in to github.com

mygithubpwd = the...

0 0
15

In today’s article, I am going to explore a common pain point for anyone running Docker in a large corporate environment. Today I’ll show how to use Docker without direct internet access.

By default, Docker assumes that the system running Docker and executing Docker commands has general access to the internet. Often in large corporate networks this is simply not the case. More often than not, a corporate network will route all internet traffic through a proxy.

While this setup is generally transparent to the end user, this type of network environment often neglects command line tools such as Docker. For today’s article, we will use Docker to build and run a simple container within a “locked down” network.

A Simple Example of Working with a Proxy

In this article, we will be building a simple ubuntu-based container that uses apt-get to install curl. While this example is simple, it will require us to leverage a proxy in several ways.

Before jumping...

0 0
16

This article explains how quickly you can learn to install, remove, update and search software packages using apt-get and apt-cache commands from the command line. This article provides some useful commands that will help you to handle package management in Debian/Ubuntu based systems.

APT-GET and APT-CACHE Commands

What is apt-get?

The apt-get utility is a powerful and free package management command line program, that is used to work with Ubuntu’s APT (Advanced Packaging Tool) library to perform installation of new software packages, removing existing software packages, upgrading of existing software packages and even used to upgrading the entire operating system.

What is apt-cache?

The apt-cache command line tool is used for searching apt software package cache. In simple words, this tool is used to search software packages, collects information of packages and also used to search for what available packages are ready for installation on Debian or Ubuntu based...

0 0
17

This guide will explain how to set up your own Pirate Bay proxy site. A proxy site will help users in countries where The Pirate Bay has been blocked.

For most of the article we'll be using a web server called NGINX. NGINX is our recommended method since it is fast, requires few resources, and has many advanced reverse proxy features. It has been tested on Red Hat based and Debian based distributions but it works on pretty much all UNIX-based systems. Your server should not have anything else running on port 80 though, and of course it needs sufficient bandwidth. Don't use a precompiled binary from your distributions repos (e.g. apt-get install package) since it will not have the required modules.

There are also two PHP scripts that proxy The Pirate Bay that have been designed specifically for this and can be used on web hosting packages (i.e. does not require a server dedicated to it).

1. Once you have your server online you will want to get NGINX...

0 0