LinuxQuestions.org
Visit Jeremy's Blog.
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 06-16-2012, 06:34 AM   #1
mohsenaria
LQ Newbie
 
Registered: May 2012
Posts: 19

Rep: Reputation: Disabled
Debian Repository


Hi guys,
my /etc/apt/sources.list content is like this:
Code:
# 

# deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official amd64 CD Binary-1 20120128-13:42]/ sque$

deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official amd64 CD Binary-1 20120128-13:42]/ squeez$

# Line commented out by installer because it failed to verify:
#deb security.debian.org/ squeeze/updates main
# Line commented out by installer because it failed to verify:
#deb-src /security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
# deb http://ftp.debian.org/debian/ squeeze-updates main
# deb-src http://ftp.debian.org/debian/ squeeze-updates main
i have installed Debian on my machine without network access and my machine doesn't have access to internet. i don't have any problem while running commands like:
Code:
apt-get install gcc
but when i want to install some library like SDL with this command:
Code:
apt-get install libsdl1.2debian
or
Code:
apt-get install synaptic
get the following error:
Code:
root@debian:/home/ppi/Desktop/l/SDL-1.2.15# apt-get install libsdl1.2debian
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libsdl1.2debian
E: Couldn't find any package by regex 'libsdl1.2debian'
root@debian:/home/ppi/Desktop/l/SDL-1.2.15# apt-get install synaptic
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package synaptic is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'synaptic' has no installation candidate
what should i do to resolve this errors?
by the way, Debian has about 30 CDs how could i understand that these packages are in which CDs?
thanks
 
Old 06-16-2012, 08:37 AM   #2
Inkit
Member
 
Registered: Feb 2011
Location: India
Distribution: Mint 10
Posts: 142

Rep: Reputation: 15
I don't rightly understand the errors thrown up, but here goes,

1. If your system is not connected to the internet you cannot download any software. Period.
2. The apt-get install for gcc probably works because it usually comes preinstalled. I am currently on Mint Debian version and the package is installed by default.
3. The only way for you to download anything on your system is to connect to internet.
4. If for some reason you don't want to connect to the internet, you need to download the packages separately and then install it into your system. This is quite easy and I've done it many times. Just connect to the internet with any debian system. download whatever package you need using synaptic making sure that you check the "download package files only" option. When the download is completed, browse to /var/cache/apt/archives and search for the packages downloaded (take down the list of packages that synaptic displays before you download). Copy this package to a removable media and use it to copy the package to your system.
5. Now run apt-get install and the package will install for you.
6. You can follow the same process for upgrades to your system too. I have 4 systems all running the same installation and I download and upgrade only once. For the remaining three systems I just copy the packages in archives and run the updater.

I hope I've been clear enough. Please post back if you have any doubts.
 
Old 06-16-2012, 09:12 AM   #3
barnac1e
Member
 
Registered: Jan 2012
Location: Moorhead, Minnesota, USA (birthplace of Slackware, ironically)
Distribution: openSUSE 42.2 LEAP- KDE
Posts: 241
Blog Entries: 1

Rep: Reputation: 9
Actually, this should be simple. In your sources.list, you need to first put a # in front of the line for the CD repo since that's not necessary anymore. Then take out the # for the others you want to use. So you can change the sources.list you listed and then copy and paste the following:

Code:
# 

# deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official amd64 CD Binary-1 20120128-13:42]/ sque$

#deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official amd64 CD Binary-1 20120128-13:42]/ squeez$

# Line commented out by installer because it failed to verify:
deb security.debian.org/ squeeze/updates main
# Line commented out by installer because it failed to verify:
deb-src /security.debian.org/ squeeze/updates main

# squeeze-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#
 deb http://ftp.debian.org/debian/ squeeze-updates main
 deb-src http://ftp.debian.org/debian/ squeeze-updates main

Do you see the differences?

Then be sure to save the sources, then run

Code:
apt-get update
and then try to install whatever packages you want. Also, make sure you have the exact spelling of the package correct according to Debian's package list of name, or apt will not be able to recognize what package you want.

This should correct your errors.
 
Old 06-16-2012, 09:27 AM   #4
mohsenaria
LQ Newbie
 
Registered: May 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
1. If your system is not connected to the internet you cannot download any software. Period.
you are right but, if choose Debian CDs as repository i think it can be useful.

Quote:
2. The apt-get install for gcc probably works because it usually comes preinstalled. I am currently on Mint Debian version and the package is installed by default.
Actually i think that gcc is in CD1 and can be installed easiliy by apt-get but SDL and some other packages are in the other CDs that i don't know which CD!

Quote:
3. The only way for you to download anything on your system is to connect to internet.
like sentence 1!

Quote:
4. If for some reason you don't want to connect to the internet, you need to download the packages separately and then install it into your system. This is quite easy and I've done it many times. Just connect to the internet with any debian system. download whatever package you need using synaptic making sure that you check the "download package files only" option. When the download is completed, browse to /var/cache/apt/archives and search for the packages downloaded (take down the list of packages that synaptic displays before you download). Copy this package to a removable media and use it to copy the package to your system.
Actually i have done that but some packages needs some prerequisities that they also should be downloaded and some other don't install!

Quote:
5. Now run apt-get install and the package will install for you.
6. You can follow the same process for upgrades to your system too. I have 4 systems all running the same installation and I download and upgrade only once. For the remaining three systems I just copy the packages in archives and run the updater.
Not in my case!

Quote:
I hope I've been clear enough. Please post back if you have any doubts.
Thank you very much for reply :-x
 
Old 06-16-2012, 09:31 AM   #5
mohsenaria
LQ Newbie
 
Registered: May 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by barnac1e View Post

and then try to install whatever packages you want. Also, make sure you have the exact spelling of the package correct according to Debian's package list of name, or apt will not be able to recognize what package you want.

This should correct your errors.
all of thing that i want is that understand that SDL is in which CD of about 30 CDs of Debian and add the description to sources.list! how is that possible!
thanks
 
Old 06-16-2012, 09:39 AM   #6
mohsenaria
LQ Newbie
 
Registered: May 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
2.4 Adding a CD-ROM to the sources.list file

If you'd rather use your CD-ROM for installing packages or updating your system automatically with APT, you can put it in your sources.list. To do so, you can use the apt-cdrom program like this:

# apt-cdrom add

with the Debian CD-ROM in the drive. It will mount the CD-ROM, and if it's a valid Debian CD it will look for package information on the disk. If your CD-ROM configuration is a little unusual, you can also use the following options:

-h - program help
-d directory - CD-ROM mount point
-r - Rename a recognized CD-ROM
-m - No mounting
-f - Fast mode, don't check package files
-a - Thorough scan mode

For example:

# apt-cdrom -d /home/kov/mycdrom add

You can also identify a CD-ROM, without adding it to your list:

# apt-cdrom ident

Note that this program only works if your CD-ROM is properly configured in your system's /etc/fstab.

http://www.debian.org/doc/manuals/ap...basico.en.html
 
Old 06-16-2012, 09:43 AM   #7
mohsenaria
LQ Newbie
 
Registered: May 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
Which of the numerous images should I download? Do I need all of them?

No. First, of course you only need to download either CD or DVD images - the two types of images contain the same packages.

Also, you only need the CD/DVD images for your computer's architecture. The architecture is the type of hardware your computer uses. By far the most popular one is the Intel/AMD architecture, so most people will only want to get the images for "i386". If your PC has a 64-bit AMD or Intel processor, you will most likely need the "amd64" images (though "i386" is also fine), the "ia64" images will not work.

Furthermore, in most cases it is not necessary to download all of the images for your architecture. The packages are sorted by popularity: The first CD/DVD contains the installation system and the most popular packages. The second one contains slightly less popular ones, the third one even less popular ones, etc. You will probably only need the first DVD (or the first two CDs) unless you have very special requirements. (And in case you happen to need a package later on which is not on one of the CDs/DVDs you downloaded, you can always install that package directly from the Internet.)

Please also read the next paragraphs to determine whether you want/need to download network install CDs, update CDs or source CDs.

http://www.debian.org/CD/faq/#which-cd

---------- Post added 06-16-12 at 08:44 AM ----------

Which CD/DVD image contains package XYZ?

To find out which image contains a certain file, use the cdimage search tool. It has knowledge of just about all the Debian CDs and DVDs produced by Debian since the Woody release, covering all the official releases (both older archived releases and the current stable release) and the current sets of daily and weekly testing builds.

http://www.debian.org/CD/faq/#search-for-package
 
Old 06-16-2012, 09:49 AM   #8
barnac1e
Member
 
Registered: Jan 2012
Location: Moorhead, Minnesota, USA (birthplace of Slackware, ironically)
Distribution: openSUSE 42.2 LEAP- KDE
Posts: 241
Blog Entries: 1

Rep: Reputation: 9
Debian themselves will tell you that they do not recommend you download more than either just the first CD or the first DVD. Beyond that you can end up installing more packages you don't need which you should not want to do. You can't just pull one app from a CD like you think. Debian will first make a cache for the whole CD even if you only want one package.
And it could create dependency problems too.

Also, I don't understand your reasoning wanting to download a whole CD for one package??

If you have the internet, change your sources list and you be able to install your package. What is your obsession with all the CDs? You will have to turn around and update packages from the CD anyway for the most recent version and in tune with your system. So why do it?

Last edited by barnac1e; 06-16-2012 at 09:54 AM.
 
Old 06-16-2012, 10:02 AM   #9
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
There are lists of the contents of the CDs here:
http://cdimage.debian.org/cdimage/re...amd64/list-cd/
 
Old 06-16-2012, 10:07 AM   #10
barnac1e
Member
 
Registered: Jan 2012
Location: Moorhead, Minnesota, USA (birthplace of Slackware, ironically)
Distribution: openSUSE 42.2 LEAP- KDE
Posts: 241
Blog Entries: 1

Rep: Reputation: 9
I tried. Have fun.
 
Old 06-16-2012, 10:11 AM   #11
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,908
Blog Entries: 28

Rep: Reputation: 537Reputation: 537Reputation: 537Reputation: 537Reputation: 537Reputation: 537
Does no one read?

The OP does not have a correct sources.list
Delete everything you have in /etc/apt/sources.list then copy/paste this:
Code:
# Stable 
deb http://http.us.debian.org/debian/ squeeze main contrib non-free 
# Stable Sources
deb-src http://http.us.debian.org/debian/ squeeze main contrib non-free 

# Security Updates  http://www.debian.org/security/
deb http://security.debian.org/ squeeze/updates main contrib non-free 

# Squeeze-updates 
deb http://http.us.debian.org/debian/ squeeze-updates main contrib non-free

# Debian Stable Backports 
# For information visit - http://backports.debian.org/
# deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
You may also want:
Code:
# Debian Mozilla team APT archive - http://mozilla.debian.net/
# Iceweasel, Icedove, Iceape
# Secure APT: apt-get install pkg-mozilla-archive-keyring 
# To use this archive, you need to add the following entry in /etc/apt/sources.list
# where release is the Debian release and pkg-ver the app version release,beta, aurora
# deb http://mozilla.debian.net/ $release $pkg-$ver

# Debian Multimedia Packages - http://deb-multimedia.org/
# DMM mirror list http://deb-multimedia.org/debian-m
# Note new updated repo line and keyring
# Secure apt: apt-get install deb-multimedia-keyring
# Debian Stable
# deb http://www.deb-multimedia.org squeeze main non-free
# deb http://www.deb-multimedia.org squeeze-backports main
After fixing your sources.list apt-get update
I would also suggest you do
apt-get upgrade followed by
apt-get dist-upgrade

Have fun and welcome to Debian.
 
Old 06-16-2012, 10:16 AM   #12
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
As I understand it:
mohsenaria has no internet connection on the machine so has only the CD ROM repository set.
mohsenaria wishes to install a package not on the first CD.
mohsenaria doesn't know which of the many CDs has the required package.

If I am correct in my understanding then adding internet repositories will not help.
 
Old 06-16-2012, 10:54 AM   #13
barnac1e
Member
 
Registered: Jan 2012
Location: Moorhead, Minnesota, USA (birthplace of Slackware, ironically)
Distribution: openSUSE 42.2 LEAP- KDE
Posts: 241
Blog Entries: 1

Rep: Reputation: 9
I thought he did have internet.If he's getting gcc to install by apt-get then how can he not have it?
 
Old 06-16-2012, 11:00 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Quote:
If he's getting gcc to install by apt-get then how can he not have it ?
The cdrom / DVD has an entry in /etc/apt/sources.list,
so all packages on the cd can be installed with # apt-get install <package>.
 
Old 06-16-2012, 12:01 PM   #15
mohsenaria
LQ Newbie
 
Registered: May 2012
Posts: 19

Original Poster
Rep: Reputation: Disabled
Cool

Quote:
Originally Posted by barnac1e View Post
Debian themselves will tell you that they do not recommend you download more than either just the first CD or the first DVD. Beyond that you can end up installing more packages you don't need which you should not want to do. You can't just pull one app from a CD like you think. Debian will first make a cache for the whole CD even if you only want one package.
And it could create dependency problems too.

Also, I don't understand your reasoning wanting to download a whole CD for one package??
http://packages.debian.org/squeeze/a...ebian/download
Download Page for libsdl1.2debian_1.2.14-6.1_amd64.deb on AMD64 machines

If you are running Debian, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website.

Quote:
If you have the internet, change your sources list and you be able to install your package. What is your obsession with all the CDs? You will have to turn around and update packages from the CD anyway for the most recent version and in tune with your system. So why do it?
i have internet but the network of my machine hasn't installed! i don't know why! and don't know how to install it!
 
  


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
How to create debian repository sunils1973 Linux - General 1 05-24-2009 01:40 PM
debian etch repository help hallows1 Linux - Server 1 05-06-2007 10:00 PM
LXer: Debian Etch And Xen From The Debian Repository LXer Syndicated Linux News 0 05-04-2007 06:31 PM
add Repository to debian alsharifhoussam Linux - Software 1 12-21-2006 05:14 AM
Debian Apt Repository ghight Linux - Software 1 02-14-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:40 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
Open Source Consulting | Domain Registration