LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 12-11-2007, 03:43 AM   #1
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Rep: Reputation: 30
apt-get install not working???


I installed a fresh Ubuntu Fiesty and want to install phpmyadmin in this machine.When I tried to run #apt-get install apache2 it shows "package couldnt be found"..I tried to run #sudo apt-get update but its taking much time...showing 30% from the first link and then no where else it goes.My source.list file is:
--------------------------------------------------------------------

# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb cdrom:[Ubuntu 7.04 _Feisty Fawn_ - Release i386 (20070415)]/ feisty main restricted
deb http://us.archive.ubuntu.com/ubuntu/ fiesty universe main restricted universe
deb cdrom:[Ubuntu-Server 7.04 _Feisty Fawn_ - Release i386 (20070415)]/ feisty main restricted
deb http://in.archive.ubuntu.com/ubuntu/ feisty main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ feisty main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ feisty-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ feisty-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://in.archive.ubuntu.com/ubuntu/ feisty universe
deb-src http://in.archive.ubuntu.com/ubuntu/ feisty universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://in.archive.ubuntu.com/ubuntu/ feisty multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ feisty multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ feisty-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu feisty-security main restricted
deb-src http://security.ubuntu.com/ubuntu feisty-security main restricted
deb http://security.ubuntu.com/ubuntu feisty-security universe
deb-src http://security.ubuntu.com/ubuntu feisty-security universe
"/etc/apt/sources.list" 50 lines, 2634 characters
deb http://security.ubuntu.com/ubuntu feisty-security multiverse
deb-src http://security.ubuntu.com/ubuntu feisty-security multiverse
----------------------------------------------------------------------

ANy help
????
 
Old 12-11-2007, 07:18 AM   #2
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
"/etc/apt/sources.list" 50 lines, 2634 characters

I guess this is not in your sources.list right?

Apt-get update grabs the list of packages so if it does not see the existence of apache2, it says "not found"
You have to find repositories with good network performance from where you are. apt-get is very good on network level so it should succeed if your network works average.
 
Old 12-11-2007, 07:51 AM   #3
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Original Poster
Rep: Reputation: 30
Can you tel me whats the good and fast link you are talking about.

vjs@ubuntu:~$ sudo apt-get install apache2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package apache2
vjs@ubuntu:~$


pls help??
 
Old 12-11-2007, 08:07 AM   #4
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Ubuntu Gutsy is newer than Feisty, so if you've just installed it, you might want to consider downloading the newest version first.

If 'apt-get update' doesn't work, the mirrors you are using are probably unreachable/too slow, so installing packages might not work either even if apache2 was found. You should first try to find mirrors of the reposities that are closer to you, so they work faster. When 'apt-get update' runs fine, you can move on. If 'apache2' can't be found, make sure it's name really is 'apache2' - and that you were able to run 'apt-get update' at least once before trying to install anything.

Check this site for information about mirrors, and try to locate one that is close to you: wiki.ubuntu.com/Mirrors

Then change the URLs in the source list file(s) to the mirror URLs, run 'apt-get update' and see how it works.
 
Old 12-11-2007, 08:10 AM   #5
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
You need to run apt-get update __until the end__
It's not the fast link I'm talking about, it's one that is fast for you and I can't help you for this.
On debian website there is a list of mirrors.
Usually try the ones of your country.

I see that the first one you use is in the US.
Quote:
deb http://us.archive.ubuntu.com/ubuntu/ fiesty universe main restricted universe
Put a # in from of the line and rerun apt-get update

Quote:
Originally Posted by b0uncer
wiki.ubuntu.com/Mirrors
Exactly here for the list for ubuntu.
 
Old 12-11-2007, 11:26 PM   #6
ajeetraina
Member
 
Registered: Jun 2007
Location: India
Distribution: Ubuntu,Red Hat, Fedora
Posts: 292

Original Poster
Rep: Reputation: 30
I tried it but I couldnt get above 20%..Can you help you to me know why the speed is so slow.Coz I can see fast speed in windows.What I should check to increase my speed??
 
Old 12-12-2007, 12:46 AM   #7
LinuxCrayon
Member
 
Registered: Nov 2007
Location: Georgia, USA
Distribution: FreeBSD
Posts: 274

Rep: Reputation: 31
As I mentioned in your other post asking how to install Apache, installing from source is always an option, Additionally, Apache should be available in the GUI version of apt-get. I'm not an Ubuntu user, so I don't know what it's called.
 
Old 12-12-2007, 06:00 AM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
I tried it but I couldnt get above 20%
You have to look at the screen during apt-get update and tell us where it hangs. This is the repository that is creating you problems. You have to replace it with one that is in the list provided before.

Mmmhhh one question.. You do have a 100% working network? Like you can browse with this machine? Using a proxy? Firewall? Please ensure that your network is working and that it's really specific to apt-get (and to one repository?)

Quote:
As I mentioned in your other post asking how to install Apache, installing from source is always an option, Additionally, Apache should be available in the GUI version of apt-get. I'm not an Ubuntu user, so I don't know what it's called.
Installing from source in the debian way requires that you download the "debian source" which is the original source + additional patches (compatibility with debian-based configurations, architectures,..).
And the patches are.. on the repository which he can't access.
There's a possiblity to not download the patches but you never know what you get then (in practice, these patches are minor for x86 architecture as the upstream original DOES work on this arch)
The GUI is synaptics. I've never used it but I assume it is based on the same process, so no apache2 probably. After all, it's a dumb GUI.. And even if it's listed as available , it won't be able to be downloaded.
 
Old 12-12-2007, 07:42 AM   #9
LinuxCrayon
Member
 
Registered: Nov 2007
Location: Georgia, USA
Distribution: FreeBSD
Posts: 274

Rep: Reputation: 31
Quote:
Originally Posted by nx5000 View Post
Installing from source in the debian way requires that you download the "debian source" which is the original source + additional patches (compatibility with debian-based configurations, architectures,..).
And the patches are.. on the repository which he can't access.
There's a possiblity to not download the patches but you never know what you get then (in practice, these patches are minor for x86 architecture as the upstream original DOES work on this arch)
The GUI is synaptics. I've never used it but I assume it is based on the same process, so no apache2 probably. After all, it's a dumb GUI.. And even if it's listed as available , it won't be able to be downloaded.
Wow. Seems like Debian's more of a headache than it's worth (as far as installing from source goes). Also, I suggested the GUI method because he said that Apache2 couldn't be found, not that he had a problem downloading it (specifically). It was just a thought that Apache2 may not be the package name. I know package names vary from system to system and management type to management type.
 
Old 12-12-2007, 09:59 AM   #10
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
Quote:
Originally Posted by LinuxCrayon View Post
Wow. Seems like Debian's more of a headache than it's worth (as far as installing from source goes)
It's the same with other distros.. they have their own patches...
It takes about half a second when you know how to do it. No headache until now.
Code:
apt-get source apache2
You can always run original softwares. I've never had the need because I've always found everything in the official repository.
Anyway I don't want to enter again in a distro comparison..


The problem is that the OP cannot get the list of packages. apt-get update HAS to finish.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Screensaver not working after apt-get install - KUBUNTU BernardoLG Ubuntu 1 12-04-2006 06:34 PM
apt-get install kernel-source-2.6.10 not working gauri Debian 7 02-17-2006 02:58 PM
apt-get install not working / apt-get update is ok remy215 Debian 2 10-01-2005 07:02 PM
apt-get install not working due to unmet dependencies ibrewale Debian 10 07-26-2005 12:13 PM
knoppix 3.4 and no apt-setup how to fix info install apt-file + base-config maximalred Debian 0 10-16-2004 06:36 PM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration