LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   Apt-get info needed (http://www.linuxquestions.org/questions/debian-26/apt-get-info-needed-541712/)

sbounty 03-29-2007 04:12 PM

Apt-get info needed
 
I installed Debian etch from a disc and it did not configure my apt-get sources to work properly. Example: I type apt-get install "example here" and it always comes back saying could not find package. It does this for every search. I tried to change the script under vi /etc/apt/sources.list but I dont think I have the scripting correct. Does anyone have any info on this? Thank you in advance.

rickh 03-29-2007 04:19 PM

Do you have an active internet connection? Might be easier is you posted your sources.list file as it looks now.

cgjones 03-29-2007 04:20 PM

Post your sources.list if you can so that we can check it for possible errors.

sbounty 03-29-2007 04:25 PM

#
# deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Beta i386 CD Binary-1 20070317-21:45]/ etch contrib main

deb cdrom:[Debian GNU/Linux testing _Etch_ - Official Beta i386 CD Binary-1 20070317-21:45]/ etch contrib main


#deb http://security.debian.org/ etch/updates main contrib

#deb-src http://non-us.debian.org/debian-non-us stable/non-us main contrib non-free

sbounty 03-29-2007 04:25 PM

here it is after I edited it. thanks

cgjones 03-29-2007 04:30 PM

Here is my sources.list.
Code:

deb http://ftp.us.debian.org/debian/ etch main non-free contrib
deb-src http://ftp.us.debian.org/debian/ etch main non-free contrib

deb http://security.debian.org/ etch/updates main contrib non-free
deb-src http://security.debian.org/ etch/updates main contrib non-free

deb http://debian.beryl-project.org/ etch main
deb-src http://debian.beryl-project.org etch main

The last two lines are for beryl, so you can probably ignore those.

sbounty 03-29-2007 04:32 PM

Sorry for the newb question but do I need the # sign before each line?

cgjones 03-29-2007 04:35 PM

The pound sign (#) is used for writing comments. Any line that begins with a # is ignored by apt.

sbounty 03-29-2007 04:38 PM

Well the apt-get is still not working. I cant figure this out :(

cgjones 03-29-2007 04:39 PM

Can you post any errors you are getting?

sbounty 03-29-2007 04:41 PM

debian:/home/sbounty# cd
debian:~# apt-get install hylafax-server
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package hylafax-server
debian:~#

cgjones 03-29-2007 04:44 PM

After you've added new sources, you will need to update the local list of available software.
Code:

apt-get update
Then try installing hylafax-server again.

sbounty 03-29-2007 04:48 PM

debian:~# apt-get update
Ign cdrom://[Debian GNU/Linux testing _Etch_ - Official Beta i386 CD Binary-1 20070317-21:45] etch Release.gpg
Ign cdrom://[Debian GNU/Linux testing _Etch_ - Official Beta i386 CD Binary-1 20070317-21:45] etch Release
Ign cdrom://[Debian GNU/Linux testing _Etch_ - Official Beta i386 CD Binary-1 20070317-21:45] etch/contrib Packages/DiffIndex
Ign cdrom://[Debian GNU/Linux testing _Etch_ - Official Beta i386 CD Binary-1 20070317-21:45] etch/main Packages/DiffIndex
Reading package lists... Done
debian:~# apt-get install hylafax-server
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package hylafax-server
debian:~#

cgjones 03-29-2007 04:52 PM

The only source you currently have is the install CD, which only has a limited amount of packages. You will need to add some new internet sources. If you can tell me where you are located geographically (I don't need an address, just a rough idea), I can suggest some sources.

sbounty 03-29-2007 04:54 PM

I am located in Arizona.


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