Installing Linux Mint 16 Cinnamon 64 bit behind a proxy

zman58
  10 years ago
  6

Boot the Mint CD to desktop...

Tried to set manual proxy in system settings, then launch installation from the desktop. The install process stalls continously and fails miserably even though the proxy is set.

Installation hangs for very long periods of time and never finishes. I think the problems occur because ubiquity is trying to run as user and the environment at runtime does not include the proxy variables. I am installing Linux Mint 16 Cinnamon edition (64 bit). The target system previously had a CentOS OpenStack system with LVM installed on it--not sure if LVM had anything to do with the problem or not.

Force the system down and boot the CD again.

Workaround:

I found another approach that worked flawlessly. It requires you to elevate into root before you run ubiquity. But you must also provide the required proxy environment variables....

Boot the Mint CD to the trial desktop...

  1. Set manual proxy in the system settings, set whatever proxy settings you need for your networking environment.

  2. Start terminal.

  3. Enter the command:

    sudo -E bash

  4. Now you are in a root session with the environment inherited from the user session (-E option did this for you)

  5. Now at the command prompt enter:

    ubiquity gtk_ui

  6. Follow prompts, providing the required information and selections.

Success! Ubuiquity ran as root and the install went perfectly with no problems at all. Only took a couple of minutes to complete. !!

Comments
rcboykin 8 years ago

Reply to solar:

For me the /etc/apt/apt.conf.d/30proxy file required ';' at the end of each line making it:

Acquire::http::proxy "http://proxy.example.com";
Acquire::https::proxy "https://proxy.example.com";
Acquire::ftp::proxy "ftp://proxy.example.com";


Solar 10 years ago

All this of course works for MATE and / or 32bit versions just as well.


Solar 10 years ago

If you want to RUN Mint behind a proxy, you need to do some additional steps after the installation. Assuming your proxy is proxy.example.com:

1 - Configure the proxy in the Control Center / Network Proxy.

2 - Some tools expect proxy settings in environment variables. Create a file /etc/profile.d/proxy.sh with the following contents:

export http_proxy="http://proxy.example.com"
export https_proxy="https://proxy.example.com"
export ftp_proxy="ftp://proxy.example.com"

3 - When running a tool via sudo, by default environment variables are cleared. We need to tell sudo to make an exception for apt-get. Create a file /etc/sudoers.d/apt-get with the following contents:

Defaults!/usr/bin/apt-get env_keep="http_proxy https_proxy ftp_proxy"

4 - Some parts of APT are not satisfied yet. Create a file /etc/apt/apt.conf.d/30proxy with the following contents:

Acquire::http::proxy "http://proxy.example.com"
Acquire::https::proxy "https://proxy.example.com"
Acquire::ftp::proxy "ftp://proxy.example.com"

I hope this helps. It took me quite some time to cobble all these together. ;-)