apt-get install command is not able to fetch packages from ubuntu repositary
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
apt-get install command is not able to fetch packages from ubuntu repositary
Hi All,
I have been working on Redhat family of distributions since past 1 year. Two days back I installed Ubuntu 10.04 on my laptop. I am novice to Package Management in Debian family of Linux distributions.
My Internet connection is working fine. But I am not able to install any package with apt-get package Manager.
Here is my /etc/apt/sources.list file
Code:
deb http://in.archive.ubuntu.com/ubuntu/ lucid main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ lucid main restricted
deb http://in.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ lucid-updates main restricted
deb http://in.archive.ubuntu.com/ubuntu/ lucid universe
deb-src http://in.archive.ubuntu.com/ubuntu/ lucid universe
deb http://in.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ lucid-updates universe
deb http://in.archive.ubuntu.com/ubuntu/ lucid multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ lucid multiverse
deb http://in.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ lucid-updates multiverse
deb http://security.ubuntu.com/ubuntu lucid-security main restricted
deb-src http://security.ubuntu.com/ubuntu lucid-security main restricted
deb http://security.ubuntu.com/ubuntu lucid-security universe
deb-src http://security.ubuntu.com/ubuntu lucid-security universe
deb http://security.ubuntu.com/ubuntu lucid-security multiverse
deb-src http://security.ubuntu.com/ubuntu lucid-security multiverse
Here is output of apt-get install command
Code:
root@vinay-laptop:/etc/init.d# apt-get install mysqld
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package mysqld
What could be the problem ? Is it necessary to make any changes in /etc/apt/sources.list file ?
I executed apt-update as you suggested. I got few messages shown below.
I am not posting whole output of apt-update, as it is very long. I have posted a part of the output here, which constitutes two types of lines in my whole output.
Seems like your DNS configuration is unable to resolve the address.
Try pinging to this server from Windows/any other Linux DNS Client.
It will inform you with IP.
Put that IP under /etc/hosts or under /etc/apt/source.list instead of hostname.
Do Check /etc/resolv.conf too.
Other than the network issues already mentioned, are you sure that the package name really is "mysqld". I suspect that the package you want is actually mysql-server. Try using "apt-cache search" to find the actual package name.
Now names are getting resolved by DNS. But I am caught with bad header error.
Code:
root@vinay-laptop:~# apt-get update
Get:1 http://security.ubuntu.com lucid-security Release.gpg [189B]
Get:2 http://in.archive.ubuntu.com lucid Release.gpg [189B]
Ign http://in.archive.ubuntu.com/ubuntu/ lucid/main Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ lucid/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ lucid/universe Translation-en_IN
Ign http://security.ubuntu.com/ubuntu/ lucid-security/main Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ lucid/multiverse Translation-en_IN
Err http://security.ubuntu.com/ubuntu/ lucid-security/restricted Translation-en_IN
Bad header line
Get:3 http://in.archive.ubuntu.com lucid-updates Release.gpg [189B]
Ign http://in.archive.ubuntu.com/ubuntu/ lucid-updates/main Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ lucid-updates/restricted Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ lucid-updates/universe Translation-en_IN
Ign http://in.archive.ubuntu.com/ubuntu/ lucid-updates/multiverse Translation-en_IN
Get:4 http://in.archive.ubuntu.com lucid Release [57.2kB]
Hit http://in.archive.ubuntu.com lucid-updates Release
Err http://in.archive.ubuntu.com lucid Release
Hit http://in.archive.ubuntu.com lucid-updates/main Packages
Hit http://in.archive.ubuntu.com lucid-updates/restricted Packages
Hit http://in.archive.ubuntu.com lucid-updates/main Sources
Hit http://in.archive.ubuntu.com lucid-updates/restricted Sources
Hit http://in.archive.ubuntu.com lucid-updates/universe Packages
Hit http://in.archive.ubuntu.com lucid-updates/universe Sources
Hit http://in.archive.ubuntu.com lucid-updates/multiverse Packages
Hit http://in.archive.ubuntu.com lucid-updates/multiverse Sources
Ign http://security.ubuntu.com/ubuntu/ lucid-security/universe Translation-en_IN
Ign http://security.ubuntu.com/ubuntu/ lucid-security/multiverse Translation-en_IN
Get:5 http://security.ubuntu.com lucid-security Release [32.5kB]
Err http://security.ubuntu.com lucid-security Release
Fetched 569B in 18s (31B/s)
Reading package lists... Done
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://in.archive.ubuntu.com lucid Release: The following signatures were invalid: NODATA 1 NODATA 2
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://security.ubuntu.com lucid-security Release: The following signatures were invalid: NODATA 1 NODATA 2
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/restricted/i18n/Translation-en_IN.bz2 Bad header line
W: Failed to fetch http://in.archive.ubuntu.com/ubuntu/dists/lucid/Release
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/lucid-security/Release
W: Some index files failed to download, they have been ignored, or old ones used instead.
As evo2 said it is mysql-server
Code:
root@vinay-laptop:~# apt-get install mysql-server
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package mysql-server
Still facing same error..Could anyone please help me with this...
I'm having a similar issue. I can't get past the login on my computer, and the fix to that needs root with networking. Any manual way to connect to the internet in root? Very new to this.
I had the same error on a new install. It looked like a DNS issue. So I configured my network connection to use OpenDNS directly, rather than via my router. That seems to have solved the problem.
Right-click network icon, select "edit connections"
Select the connection you are using at the moment.
Click "edit"
Select the "IPv4 settings" tab
Set method to "Automatic (DHCP) addresses only"
Then input "208.67.222.222, 208.67.220.220" into the DNS servers box
Exit, reset the network connection and retry "apt-get update"
you might be required to be at a specific location, or behind a proxy / vpn.
My work gave me a laptop that requires this, and fails for the same reasons. I am trying to find a way to replace their GPG key with a nice one that lets me update anywhere
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.