LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-30-2015, 06:22 AM   #1
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Rep: Reputation: Disabled
problem unable to locate package in ubuntu


hello
I have ubuntu server in my windows to use virtual Box. also I have apache in my download directory in windows and its name folder is "apache" .now, when I type "sudo apt-get install" I see error.( E:unable to locate package) please help me.
thanks.
 
Old 01-30-2015, 06:31 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,104

Rep: Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267Reputation: 2267
sudo apt-get install <package-name> or
sudo dpkg -i <filename>
<package> should be available in a preconfigured repository, <filename> should be available as a regular file.
 
Old 01-30-2015, 07:13 AM   #3
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
I typed sudo dpkg -i apache, but it displayed " no such file or directory" I got "httpd-2.4.12.tar.bz2" from apache.org and extract it.then I changed httpd-2.4.12.tar.bz2 to apache for simplicity.then I typed sudo dpkg -i apache but it displayed " no such file or directory"
thanks.
 
Old 01-30-2015, 07:33 AM   #4
manu-tm
Member
 
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343

Rep: Reputation: 43
Code:
sudo apt-get install apache2
 
Old 01-30-2015, 07:59 AM   #5
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
when I typed " sudo apt-get install apache2 " The result is as follows:

reading package ..... lists Done
building building dependency tree
reading state information.... Done
E:unable to locate packege

it seems apache is installed. But I doubt.

Last edited by what is; 01-30-2015 at 08:00 AM.
 
Old 01-30-2015, 08:01 AM   #6
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
To the OP: you're getting mixed up. The apt-get utility installs specially formatted packages (with a .deb extension - actually, it's a wrapper around dpkg which installs these packages). You cannot use it to install any random tarball that you downloaded from the net. Your best bet is to follow manu-tm's advice above and use apt-get to install a package file designed for your distribution.
 
Old 01-30-2015, 08:03 AM   #7
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by what is View Post
when I typed " sudo apt-get install apache2 " The result is as follows:

reading package ..... lists Done
building building dependency tree
reading state information.... Done
E:unable to locate packege

it seems apache is installed. But I doubt.
I just saw this message. Can you try running "sudo apt-get update" and then try running "sudo apt-get install apache2"? If this does not work, can you tell us which version of Ubuntu server you are using. Also please paste the contents of the "/etc/apt/sources.list" file.
 
Old 01-30-2015, 08:10 AM   #8
manu-tm
Member
 
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343

Rep: Reputation: 43
These links may help:

https://help.ubuntu.com/lts/serverguide/httpd.html

https://help.ubuntu.com/lts/serverguide/apt-get.html

Last edited by manu-tm; 01-30-2015 at 08:16 AM.
 
Old 01-30-2015, 08:43 AM   #9
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
When I update, it goes up to 30%. and I think it does not happen fully.also During the update operation i see err http://...........................
404 not found [ip:91.189.91.94 80]
.
.
.
or
w Failed to fatch http://..............
.
.
.
.
.
.
And at the end, I see "E: some index fails failed to download.they have been ignored. or old ones used insread.

I uses ubuntu-11.10-server-i386.
thanks.
 
Old 01-30-2015, 08:54 AM   #10
manu-tm
Member
 
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343

Rep: Reputation: 43
It seems some repositories can't be accessed (don't know which ones as you don't provide this information.)
Can you still install the apache package?

Last edited by manu-tm; 01-30-2015 at 08:56 AM.
 
Old 01-30-2015, 02:22 PM   #11
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
I built one system to another, and more I chose all the items apart from the java tomcat server.then after installation I typed
"sudo apt-get install apache2 " and this time i saw "apache2 is already the newest version". What does that mean???(I did not see the "E:unable to locate packege"


2- now,I have not ftb server in my window, but i want it. therefore I typed " sudo apt-get install vsftpd", but again I saw " E:unable to locate packege"


I'm confused!!!

thanks.

Last edited by what is; 01-30-2015 at 02:24 PM.
 
Old 01-30-2015, 02:35 PM   #12
Habitual
LQ Addict
 
Registered: Jan 2011
Location: Youngstown, Ohio
Distribution: LM17.1/Xfce4.11.8
Posts: 7,159
Blog Entries: 10

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
open a terminal and type
Code:
lsb_release -d
and give us the output, please.
 
Old 01-30-2015, 02:44 PM   #13
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
I typed "lsb_release -d"

result:
Description:Ubuntu 11.10
 
Old 01-30-2015, 02:45 PM   #14
manu-tm
Member
 
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343

Rep: Reputation: 43
Quote:
Originally Posted by what is View Post
I built one system to another, and more I chose all the items apart from the java tomcat server.then after installation I typed
"sudo apt-get install apache2 " and this time i saw "apache2 is already the newest version". What does that mean???(I did not see the "E:unable to locate packege"
It means the latest available version (in the repo) of apache is already installed.

Last edited by manu-tm; 01-30-2015 at 02:47 PM.
 
Old 01-30-2015, 03:01 PM   #15
what is
LQ Newbie
 
Registered: Jan 2015
Posts: 28

Original Poster
Rep: Reputation: Disabled
Therefore the first problem was solved. thank you very much.

But The second problem:
Installing the FTP???
 
  


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
[SOLVED] In ubuntu 12.1 unable to locate package tree jimeast Linux - Newbie 5 01-19-2013 01:39 PM
E:unable to locate package hafiznasrullah Linux - Server 7 09-10-2012 08:42 AM
ubuntu server 12.04 unable to locate package cyrus-sasl fillister Ubuntu 1 09-05-2012 11:29 AM
[SOLVED] E: Unable to locate package nova-comm E: Unable to locate package python-psycopq2 mint12 Linux - Virtualization and Cloud 2 01-05-2012 01:07 PM
i have problem in installing ns2.34 on ubuntu. error is aotoconf is unable to locate nitin4c Linux - Software 1 09-23-2011 05:38 AM


All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration