Failed to download kernel source - linux

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

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.

Installing Missing executable for Buildozer

I am new to coding in general and I have developed a simple app I want to convert to an .apk file.
I use Windows 10 so I have installed Oracle VM VirtualBox to run buildozer for conversion.
I have come across more different errors than I care to count, but the crux of my issues appear to be that I am missing executables:
[WARNING]: Missing executable: autoconf is not installed
[WARNING]: Missing executable: automake is not installed
[WARNING]: Missing executable: libtoolize is not installed
I have attempted to use:
sudo apt-get install autoconf
but I get the following:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
automake autotools-dev m4
Suggested packages:
autoconf-archive gnu-standards autoconf-doc libtool m4-doc
The following NEW packages will be installed:
autoconf automake autotools-dev m4
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 870 kB/1,067 kB of archives.
After this operation, 3,943 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Ign:1 http://fr.archive.ubuntu.com/ubuntu zesty/main amd64 autoconf all 2.69-10
Ign:2 http://fr.archive.ubuntu.com/ubuntu zesty/main amd64 autotools-dev all 20161112.1
Ign:3 http://fr.archive.ubuntu.com/ubuntu zesty/main amd64 automake all 1:1.15-5ubuntu1
Err:1 http://fr.archive.ubuntu.com/ubuntu zesty/main i386 autoconf all 2.69-10
404 Not Found [IP: 194.158.119.186 80]
Err:2 http://fr.archive.ubuntu.com/ubuntu zesty/main i386 autotools-dev all 20161112.1
404 Not Found [IP: 194.158.119.186 80]
Err:3 http://fr.archive.ubuntu.com/ubuntu zesty/main i386 automake all 1:1.15-5ubuntu1
404 Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/main a/autoconf/autoconf_2.69-10_all.deb 404 Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/main/a/autotools-dev/autotools-dev_20161112.1_all.deb 404 Not Found [IP: 194.158.119.186 80]
E: Failed to fetch http://fr.archive.ubuntu.com/ubuntu/pool/main/a/automake-1.15/automake_1.15-5ubuntu1_all.deb 404 Not Found [IP: 194.158.119.186 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
I have hit a wall after searching online for days looking for a solution but I have made no progress.
Ubuntu 17.04 (Zesty Zapus) reached End of Life on January 13, 2018. On the VM, you have to upgrade from Ubuntu 17.04 Zesty to Ubuntu 18.04 LTS Bionic. Please do the following:
sudo sed -i 's/zesty/bionic/g' /etc/apt/sources.list
sudo apt update
sudo apt upgrade
sudo apt dist-upgrade
sudo apt autoremove
sudo apt clean
Reboot the system

sudo apt-get update fail on Ubuntu 17.04

While running the sudo apt-get update on ubuntu 17.04 Zesty Zapus, I am getting the following error. I have posted on the error lines. I wanted to install python libraries like matplotlib and tkinter which failed to installed because above command wasn't running succesfully. Please suggest me what to do.
Err:9 http://security.ubuntu.com/ubuntu zesty-security/main amd64 Packages
404 Not Found [IP: 2001:67c:1560:8001::14 80]
Err:25 http://in.archive.ubuntu.com/ubuntu zesty/main i386 Packages
404 Not Found [IP: 2001:67c:1360:8001::21 80]
Err:81 http://in.archive.ubuntu.com/ubuntu zesty-updates/main amd64 Packages
404 Not Found [IP: 2001:67c:1360:8001::21 80]
Err:113 http://in.archive.ubuntu.com/ubuntu zesty-backports/main amd64 Packages
404 Not Found [IP: 2001:67c:1360:8001::21 80]
Reading package lists... Done
W: The repository 'http://security.ubuntu.com/ubuntu zesty-security Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty-updates Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'http://in.archive.ubuntu.com/ubuntu zesty-backports Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/zesty-security/main/binary-amd64/Packages 404 Not Found [IP: 2001:67c:1560:8001::14 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty/main/binary-i386/Packages 404 Not Found [IP: 2001:67c:1360:8001::21 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty-updates/main/binary-amd64/Packages 404 Not Found [IP: 2001:67c:1360:8001::21 80]
E: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/zesty-backports/main/binary-amd64/Packages 404 Not Found [IP: 2001:67c:1360:8001::21 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
you can solve it by: just replace us.archive.ubuntu.com and security.ubuntu.com in /etc/apt/sources.list with old-releases.ubuntu.com and then you'll be able to finish updating.
refer to source 1 and ubuntu forum
it work for me
In my case:
sed -e 's/archive.ubuntu.com/old-releases.ubuntu.com/g' -i /etc/apt/sources.list
sed -e 's/security.ubuntu.com/old-releases.ubuntu.com/g' -i /etc/apt/sources.list
In my case, I was able to download some of the packages by doing the following:
I had to replace "us.archive.ubuntu.com" and "security.ubuntu.com" in /etc/apt/sources.list WITH "old-releases.ubuntu.com" and then I was able to finish downloading some of the packages, like Ayush Kumar said.
For the other updates that were listed by my Hosting company, Linode, I used the following:
I had to use the --allow-unauthenticated flag with sudo apt-get update.
sudo apt-get update --allow-unauthenticated
Then I was able to finish updating.
17.04 isn't getting further support from Ubuntu. So, the solution that worked for me was to upgrade it to 17.10 as none other solutions helped.

Squid not getting installed in linux mint

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

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