Squid not getting installed in linux mint - linux

I am a newbie to linux and network programming. My task is to study and configure squid proxy server. I am using Linux mint 15. Tried sudo apt-get install squid
But this is what i get
Err http://archive.ubuntu.com/ubuntu/ raring/main squid-langpack all 20120616-1
404 Not Found [IP: 91.189.91.14 80]
Err http://archive.ubuntu.com/ubuntu/ raring/main squid3-common all 3.1.20-1ubuntu3
404 Not Found [IP: 91.189.91.14 80]
Err http://archive.ubuntu.com/ubuntu/ raring/main squid3 i386 3.1.20-1ubuntu3
404 Not Found [IP: 91.189.91.14 80]
Err http://archive.ubuntu.com/ubuntu/ raring/universe squid i386 3.1.20-1ubuntu3
404 Not Found [IP: 91.189.91.14 80]
0% [Working]E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/squid-langpack/squid-langpack_20120616-1_all.deb: 404 Not Found [IP: 91.189.91.14 80]
Please help me out...

try the following
make sure internet is working in your machine
sudo rm -r /var/lib/apt/lists/*
sudo apt-get update
sudo apt-get install squid3

Related

How to solve "No module named _bz2" error?

I'm trying to use s3fs in Python 3.6, using Debian 3.16.51-3.
When I import s3fs:
import s3fs
...
from _bz2 import BZ2Compressor, BZ2Decompressor
ModuleNotFoundError: No module named '_bz2'
Alright, I tried to update/install libbz2-dev, as mentioned in other questions here in SO.
sudo apt-get install libbz2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
bzip2 bzip2-doc libbz2-1.0
The following NEW packages will be installed:
bzip2-doc libbz2-dev
The following packages will be upgraded:
bzip2 libbz2-1.0
2 upgraded, 2 newly installed, 0 to remove and 151 not upgraded.
Need to get 425 kB of archives.
After this operation, 561 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Err http://security.debian.org/ jessie/updates/main bzip2 amd64 1.0.6-7+deb8u1
404 Not Found [IP: 151.101.128.204 80]
Err http://security.debian.org/ jessie/updates/main libbz2-1.0 amd64 1.0.6-7+deb8u1
404 Not Found [IP: 151.101.128.204 80]
Err http://security.debian.org/ jessie/updates/main bzip2-doc all 1.0.6-7+deb8u1
404 Not Found [IP: 151.101.128.204 80]
Err http://security.debian.org/ jessie/updates/main libbz2-dev amd64 1.0.6-7+deb8u1
404 Not Found [IP: 151.101.128.204 80]
E: Failed to fetch http://security.debian.org/pool/updates/main/b/bzip2/bzip2_1.0.6-7+deb8u1_amd64.deb 404 Not Found [IP: 151.101.128.204 80]
E: Failed to fetch http://security.debian.org/pool/updates/main/b/bzip2/libbz2-1.0_1.0.6-7+deb8u1_amd64.deb 404 Not Found [IP: 151.101.128.204 80]
E: Failed to fetch http://security.debian.org/pool/updates/main/b/bzip2/bzip2-doc_1.0.6-7+deb8u1_all.deb 404 Not Found [IP: 151.101.128.204 80]
E: Failed to fetch http://security.debian.org/pool/updates/main/b/bzip2/libbz2-dev_1.0.6-7+deb8u1_amd64.deb 404 Not Found [IP: 151.101.128.204 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Tried using --fix-missing, but reached the same error. Apparently the files are not available for download (?).
How should I approach this problem? Thanks in advance.

Azure Ubuntu VM docker build apt-get 403 forbidden

I'm trying to configure Docker on an Azure VM (Ubuntu 18.04 LTS). The goal is to use Jenkins to deploy my applications to my Kubernetes cluster (following this tutorial).
But when I try to build a docker image inside this VM I got 403 errors during the "RUN apt-get update". While the VM itself can access those urls, it's only during the build of the docker image that I get 403 errors.
Sample of the output :
Err:33 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages
403 Forbidden [IP: 91.189.88.149 80]
Ign:34 http://archive.ubuntu.com/ubuntu xenial-backports/main all Packages
Ign:35 http://archive.ubuntu.com/ubuntu xenial-backports/restricted amd64 Packages
Ign:36 http://archive.ubuntu.com/ubuntu xenial-backports/restricted all Packages
Ign:37 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages
Ign:38 http://archive.ubuntu.com/ubuntu xenial-backports/universe all Packages
Ign:39 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse amd64 Packages
Ign:40 http://archive.ubuntu.com/ubuntu xenial-backports/multiverse all Packages
Reading package lists...
W: The repository 'http://archive.ubuntu.com/ubuntu xenial-updates Release' does not have a Release file.
W: The repository 'http://archive.ubuntu.com/ubuntu xenial-backports Release' does not have a Release file.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/xenial-security/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.161 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.149 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-updates/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.149 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/xenial-backports/main/binary-amd64/Packages 403 Forbidden [IP: 91.189.88.149 80]
I have found some similar questions like this one but none of the answers worked or explains exactly what happens in Azure (firewall or transparent proxy not used properly by the network of docker I guess).
Is there a specific configuration for docker, azure VM, ...?
Thank you.

Error while installing php5-gd on ubuntu 14.04

E: Failed to fetch
http://archive.ubuntu.com/ubuntu/pool/main/f/freetype/libfreetype6_2.5.2-1ubuntu2.4_amd64.deb
404 Not Found [IP: 91.189.91.13 80]
(I am to install it inside a phusion Ubuntu Docker)

Failed to download kernel source

Failed to download linux kernel source. What is wrong?
root#vagrant-ubuntu-trusty-64:/vagrant/pkgs# apt-get source linux-image-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
Picking 'linux' as source package instead of 'linux-image-3.13.0-37-generic'
NOTICE: 'linux' packaging is maintained in the 'Git' version control system at:
http://kernel.ubuntu.com/git-repos/ubuntu/ubuntu-trusty.git
Need to get 125 MB of source archives.
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux 3.13.0-40.69 (dsc)
404 Not Found [IP: 91.189.88.149 80]
Get:1 http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux 3.13.0-40.69 (tar) [116 MB]
Err http://archive.ubuntu.com/ubuntu/ trusty-updates/main linux 3.13.0-40.69 (diff)
404 Not Found [IP: 91.189.88.149 80]
Fetched 116 MB in 46s (2,494 kB/s)
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_3.13.0-40.69.dsc 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/l/linux/linux_3.13.0-40.69.diff.gz 404 Not Found [IP: 91.189.88.149 80]
E: Failed to fetch some archives.
I am using standard Ubuntu 14.04
root#vagrant-ubuntu-trusty-64:/vagrant/pkgs# more /etc/issue
Ubuntu 14.04.1 LTS \n \l
I believe that NOTICE: 'linux' packaging is maintained in the 'Git' version control system at:
http://kernel.ubuntu.com/git-repos/ubuntu/ubuntu-trusty.git is fairly straightforward. If you already have git installed use
git clone http://kernel.ubuntu.com/git-repos/ubuntu/ubuntu-trusty.git
Otherwise, install git first
sudo apt-get install git

Failed installation of GD library on Debian

I am trying to install GD library on my Debian server, but the following error appears:
# apt-get install php5-gd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libapache2-mod-php5 libt1-5 php5-common php5-mcrypt php5-mysql
Suggested packages:
php-pear
The following NEW packages will be installed:
libt1-5 php5-gd
The following packages will be upgraded:
libapache2-mod-php5 php5-common php5-mcrypt php5-mysql
4 upgraded, 2 newly installed, 0 to remove and 39 not upgraded.
Need to get 3120kB of archives.
After this operation, 545kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
php5-mysql php5-mcrypt libapache2-mod-php5 php5-common libt1-5 php5-gd
Install these packages without verification [y/N]? y
Err http://security.debian.org lenny/updates/main php5-mysql 5.2.6.dfsg.1-1+lenny16
404 Not Found [IP: 128.101.240.212 80]
Err http://security.debian.org lenny/updates/main php5-mcrypt 5.2.6.dfsg.1-1+lenny16
404 Not Found [IP: 128.101.240.212 80]
Err http://security.debian.org lenny/updates/main libapache2-mod-php5 5.2.6.dfsg.1-1+lenny16
404 Not Found [IP: 128.101.240.212 80]
Err http://security.debian.org lenny/updates/main php5-common 5.2.6.dfsg.1-1+lenny16
404 Not Found [IP: 128.101.240.212 80]
Err http://security.debian.org lenny/updates/main libt1-5 5.1.2-3+lenny1
404 Not Found [IP: 128.101.240.212 80]
Err http://security.debian.org lenny/updates/main php5-gd 5.2.6.dfsg.1-1+lenny16
404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-mysql_5.2.6.dfsg.1-1+lenny16_i386.deb 404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-mcrypt_5.2.6.dfsg.1-1+lenny16_i386.deb 404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/libapache2-mod-php5_5.2.6.dfsg.1-1+lenny16_i386.deb 404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-common_5.2.6.dfsg.1-1+lenny16_i386.deb 404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://security.debian.org/pool/updates/main/t/t1lib/libt1-5_5.1.2-3+lenny1_i386.deb 404 Not Found [IP: 128.101.240.212 80]
Failed to fetch http://security.debian.org/pool/updates/main/p/php5/php5-gd_5.2.6.dfsg.1-1+lenny16_i386.deb 404 Not Found [IP: 128.101.240.212 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I get a different IP for security.debian.org (195.20.242.89). Flush the DNS cache and try again, it's possible that they've moved IPs:
/etc/rc.d/init.d/nscd restart
And then follow the instructions and run
apt-get update
Before trying to install it again

Resources