Wednesday, May 8, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1890  / 2 Years ago, wed, april 27, 2022, 7:57:45

I can't seem to install anything using apt. I guess it's a proxy issue, but I checked /etc/environment and I've included all the necessary proxy information. I've included a picture of the errors I'm getting. Help is appreciated. Thank you.



$ sudo apt-get install install-info
Reading package lists... Done
Building dependency tree
Reading state information... Done
install-info is already the newest version.
The following packages were automatically installed and are no longer required:
0ad-data 0ad-data-common fonts-texgyre libenet2a libglc0 libglewmx1.10
libgloox11 libnvtt2 libphysfs1 tex-common warzone2100-data
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 334 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up install-info (5.2.0.dfsg.1-2) ...
/etc/environment: line 2: http://proxy.iiit.ac.in:8080:: No such file or directory
dpkg: error processing package install-info (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
install-info
E: Sub-process /usr/bin/dpkg returned an error code (1)


The contents of my environment variable are:



PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
http_proxy= "http://proxy.iiit.ac.in:8080:"
https_proxy= "http://proxy.iiit.ac.in:8080:"
ftp_proxy= "http://proxy.iiit.ac.in:8080:"
no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
HTTP_PROXY= "http://proxy.iiit.ac.in:8080:"
HTTPS_PROXY="http://proxy.iiit.ac.in:8080:"
FTP_PROXY="http://proxy.iiit.ac.in:8080:"
NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com"

More From » apt

 Answers
1

Some of your variable assignments have spaces after the =. There should be no space. They should look like:



PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
http_proxy="http://proxy.iiit.ac.in:8080:"
https_proxy="http://proxy.iiit.ac.in:8080:"
ftp_proxy="http://proxy.iiit.ac.in:8080:"
no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com"
HTTP_PROXY="http://proxy.iiit.ac.in:8080:"
HTTPS_PROXY="http://proxy.iiit.ac.in:8080:"
FTP_PROXY="http://proxy.iiit.ac.in:8080:"
NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com"

[#21276] Thursday, April 28, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
lassrake

Total Points: 400
Total Questions: 103
Total Answers: 98

Location: Netherlands
Member since Mon, Jun 22, 2020
4 Years ago
;