[clug] Re: Debian package

Ian darkstarsword at gmail.com
Thu Mar 29 15:16:28 GMT 2007

On 29/03/07, Barry Campbell <barryca at bigpond.net.au> wrote:
> Hi there
> O.K.  The file I downloaded and wish to install is
> "K9copy_1.1.0~Beta2-0ubuntu1_i386.deb" which now resides in my Desktop
> folder and named as stated.
> I have tried to install it (in kubuntu) from the Konsole program using the
> command line "sudo apt-get install K9copy_1.1.0~Beta2-0ubuntu1_i386.deb".

Try executing "sudo apt-get install k9copy" instead.
That _should_ automatically download k9copy_someversionnumber.deb and
everything it depends on (sometimes you may need to execute "sudo
apt-get update" first to update your package list).

By specifying the entire filename there what you are actually telling
apt to do is find a package _titled_
K9copy_1.1.0~Beta2-0ubuntu1_i386.deb (the _filename_ would be similar
to K9copy_1.1.0~Beta2-0ubuntu1_i386.deb_someversion.deb) in your
package list, download it and all it's dependencies and install them,
which is not what you want, and would fail with a cannot find package
error. I'm a little confused since that isn't the error you are
getting though.

Alternatively use one of the frontends:
aptitude (console) - keys are confusing but I find it to be more
stable than the next 2. Questionmark is your friend to find out how to
use it.
synaptic (gui)
adept (gui) - Last time I used it on Kubuntu it crashed quite
regularly, so the first thing I did was install synaptic with
"aptitude install synaptic".

If you _really_ need to install it without the automatic downloading,
then the command you need to execute is:
sudo dpkg -i ~/Desktop/K9copy_1.1.0~Beta2-0ubuntu1_i386.deb

An unfortunate side-effect of doing things manually with dpkg is that
it also won't try to download other packages to satisfy missing
dependencies, so if the install fails with some error about package x
is not installed, try "apt-get x" (where x is the name of the missing
dependency/dependencies). If they are not in any of the repositories
you have set in /etc/apt/sources.list (for k9copy they should be) or
you don't have a live network connection, then you also will need to
manually download and install them with dpkg -i as above.

> The refusal I get is "The utility is not in the PATH"  and the question is,
> HOW do I get it into the PATH?!  Hope this clarifies the query.

This error doesn't make much sense to me since it hasn't actually
specified which utility it's looking for, perhaps someone else can
make sense of it?
Random thought - what's the output of the following:
echo $PATH
whereis apt-get
whereis dpkg

I'm tempted to tell you to run strace and ltrace over it, but try the
above first and see how you go.

> Regards Barry

On the day *I* go to work for Microsoft, faint oinking sounds will be
heard from far overhead, the moon will not merely turn blue but
develop polkadots, and hell will freeze over so solid the brimstone
will go superconductive.
     -- Erik Raymond, 2005
Hi! I'm your friendly neighbourhood signature virus.
Copy me to your signature file and help me spread!
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html

More information about the linux mailing list