LinuxQuestions.org
Help answer threads with 0 replies.
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 02-05-2006, 08:02 PM   #1
craftybytes
Member
 
Registered: Jan 2006
Location: Killarney, QLD Australia
Distribution: Mepis 3.4-3; Puppy 2.12; WinXP Pro (rarely)
Posts: 54

Rep: Reputation: 15
Help installing progs in DEBIAN (Mepis) using "apt-get" or other suitable prog


Hi group!!
I know how to install progs using Debian's "apt-get" (or 'KPackage') but after spending almost 3 hours yesterday chasing up and downloading a stack of "updated" dependencies for ONLY four (4) programs I wanted to install - I almost threw the computer out the door in frustration!!!!!!

All I want is a SIMPLE way to install a prog - if it needs some updated (or uninstalled) dependencies - then they should be downloaded AND installed as well WITHOUT any intervention on my part.

Am I missing something in "apt-get" or "KPackage" that does this or is there any other progs available that I could use that DOES THIS - help please???

Oz-Rod
 
Old 02-05-2006, 11:05 PM   #2
JimBass
Senior Member
 
Registered: Oct 2003
Location: New York City
Distribution: Debian Sid 2.6.32
Posts: 2,100

Rep: Reputation: 49
The beauty of apt-get is that it handles dependencies. If I tell it to install the package named cool-game, and cool-game requires funky-library-file, apt-get knows to get both cool-game and funky-library-file, and to install funky-library-file before trying cool-game.

Anopther good thing is the apt-get build-dep function. Going back to my previous example, if I did "apt-get build-dep cool-game", it would download and install funky-library-file for me, but not do cool game, as I only asked for the dependent files.

I have never used Mepis, but apt-get is on the money the great majority of the time. If it is having problems, you may have an issue where your sources.lst file has bad repositories in it, you're asking for some incompatible installations, or you are not asking for packages by their correct names. Synaptic is a graphical tool for apt-get. If you're finding the command line apt to be difficult, you may have better luck with that. I have never heard of or used KPackage, but that sounds like maybe a GUI package manager for KDE.

Post more specific info about your problem (error messages, the programs you are trying to install), and we can help you much better.

Peace,
JimBass
 
Old 02-05-2006, 11:06 PM   #3
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
First off, Mepis is NOT pure debian. But Mepis does use the debian repositories. Sometimes that's a bad fit.

Now, check your /etc/apt/sources.list and make sure the repositories are all from the same version (i.e. stable, testing, or unstable). Then apt-get update and apt-get dist-upgrade.

Apt-get does handle dependencies for you, but if you're using the stable version of the repositories or trying to install a program not in the repository then you may run into some of these problems.
 
Old 02-07-2006, 09:40 PM   #4
craftybytes
Member
 
Registered: Jan 2006
Location: Killarney, QLD Australia
Distribution: Mepis 3.4-3; Puppy 2.12; WinXP Pro (rarely)
Posts: 54

Original Poster
Rep: Reputation: 15
Hi,
My apologies for not replying sooner!!
Thanks guys for the quick responses....
JimBass....Yep, KPackage is a GUI package manager for KDE.
pljvaldez....thanks for the pointers on the /apt/sources.list ... and yes to the possible 'bad fit' on the Debian repositories.

In retrospect..what I was trying to do was install a few of progs from an CD and unfortunately found they needed quite a few 'dependency' progs that were not provided with them - so had to go hunt them up from off the internet - so by the time I had located and downloaded them then redid the 'install' on each of the original progs - the time had blown out to just over 2 hours - when I did have all the pieces to the 'dependency' puzzles, each of the original progs only took less than a minute to install.....ArrrrrrrgggHHHH!!!!!!!

I've also just realized that the KPackage GUI uses the DPKG package manager prog to install files and that 'apt-get' is only used to download files from the web - 'apt-get' also links to the DPKG package manager for installs.

Maybe my question should have been related to DPKG and not 'apt-get'.

Thanks all the same.

Oz-Rod
 
Old 02-08-2006, 11:49 AM   #5
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
If you use apt-get, you may have been able to add the CD to the sources.list and then whatever it didn't find on the CD it would have just downloaded from other sources (i.e. the net). I think the command is apt-cdrom add or something like that. And depending on what files they were, they may have already existed in the Debian repositories (somewhere). You can always go to debian.org and search the package directory there.
 
Old 02-08-2006, 03:22 PM   #6
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,210

Rep: Reputation: 71
If you do "apt-cdrom add" as suggested above, apt will be aware of all files on the CD and select the CD first for taking care of dependencies. When you want to install a program, just do:
Code:
apt-get update
apt-get install <program name>
Apt will check for needed files on CD first, then try the internet. If you do "apt-cdrom add" for a whole set of Debian CDs, you won't need the internet to install things. In fact, you can edit /etc/apt/sources.list and comment out entries from internet repositories (ftp or http), then just use the set of Debian CDs as long as all dependent packages are on the CD set, it will work.
 
Old 02-08-2006, 03:26 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Just out of curiosity, what were the programs you were trying to install?
 
Old 03-25-2006, 07:59 PM   #8
samuelmp
Member
 
Registered: Feb 2004
Location: england
Distribution: mepis 3-4-3 [join us]
Posts: 154

Rep: Reputation: 30
Hi guys I get this when ever I do apt-get update

Password:
root@4[~]# apt - get
-su: apt: command not found
root@4[~]# apt-get update
E: Could not get lock /var/lib/apt/lists/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the list directory
root@4[~]#




any help
 
Old 03-26-2006, 07:46 PM   #9
craftybytes
Member
 
Registered: Jan 2006
Location: Killarney, QLD Australia
Distribution: Mepis 3.4-3; Puppy 2.12; WinXP Pro (rarely)
Posts: 54

Original Poster
Rep: Reputation: 15
Hi group,

Sorry for the delay in replying but have just got my system back up - tried to do an upgrade from "SimplyMEPIS 3.3test02" to "SimplyMEPIS 3.3.2" - big disaster - had all sorts of problems - major pain was that I couldn't get access to the internet for some very strange reason - so went back to the "3.3test02" version which works very well - will just have to judiciously upgrade those progs in this version that I need to ONLY.

pjvaldez - as to the progs I was trying to install - well I'm not sure now since the system crash (as explained above) effectively f***ed any working progs I had installed - now that I'm back to the '3.3test02' version - I'm gonna do any updates "very carefully". Also have managed to get my problem with 'apt-get' all sorted out - have found some Debian DVD's with most of the debian progs and utilities on so can now load them via 'apt-get update' etc and they work ok.

Thanks for the interest anyway.

Oz-Rod
 
  


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
"Skin not found" problem from installing Mplayer in Debian/Sarge !!! Blue Jacket Linux - Software 2 10-05-2005 01:58 AM
konsole problem: "Unable to open a suitable terminal device" Mistreated Linux - Software 2 11-15-2004 03:24 PM
where can i find "suitable startup script" in my SW10.0? frik Slackware - Installation 1 10-26-2004 08:46 PM
"suitable" iptables while running sendmail zepplin611 Linux - Security 1 01-26-2004 08:47 AM
Better buying "advanced linux prog" or "unix advanced prog" Dominik Programming 3 12-31-2003 01:11 PM


All times are GMT -5. The time now is 08:05 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