LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-26-2014, 02:56 PM   #1
Drakkahn
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
Question Installing .deb file to a different location on Linux Mint


I've been trying to install a .deb file from my travel drive to another location on my travel drive using this command:

Code:
sudo dpkg --install "/media/mom/KING KAHN/XMind/Linux/xmind-linux-3.4.1.201401221918_i386.deb" --root="/media/mom/KING KAHN/XMind/Linux/"
For some reason this is not working, so how could I fix this?

Code:
(Reading database ... 156287 files and directories currently installed.)
Preparing to replace xmind 3.4.1 (using .../xmind-linux-3.4.1.201401221918_i386.deb) ...
Unpacking replacement xmind ...
dpkg: error processing --root=/media/mom/KING KAHN/XMind/Linux/ (--install):
 cannot access archive: No such file or directory
Setting up xmind (3.4.1) ...
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for mime-support ...
Processing triggers for shared-mime-info ...
Errors were encountered while processing:
 --root=/media/mom/KING KAHN/XMind/Linux/
 
Old 10-26-2014, 07:31 PM   #2
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
I have never done this before, but a look at the man page tells the --root=/foo command makes /foo the root directory for the entire installation process.

So 2 things could be happening: If the install package is located in /foo/blah.deb, you should install blah.deb, not /foo/blah.deb.

Secondly, dpkg expects a complete directory tree with directories like /usr /bin /lib /etc and so on. Once you set root to /foo, there must be a directory structure below /foo, thus /foo/usr, /foo/var. And that might be the hardest, I don't know if dpkg creates them.

Besides, any package running expects a correctly set up /tmp, /var, /bin, /etc and whatnot. If you don't have them, the program doesn't run.

jlinkels
 
Old 10-27-2014, 02:48 AM   #3
Hungry ghost
Senior Member
 
Registered: Dec 2004
Posts: 1,222

Rep: Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667Reputation: 667
I'm not familiar with the --root option either. I tried it specifying an empty directory but it didn't work in my case (i.e. the package got installed on my root file system instead of the directory I specified).

That said, I think the OP's problem is that the path to the package contains a space and dpkg doesn't seem to like it, even if quotes are being used. I would simply try to cd into the directory containing the package and specify the root install directory scaping the space with a back slash.

edit: In addition, dpkg probably expects a file system structure in the target directory as jlinkels said.

Last edited by Hungry ghost; 10-27-2014 at 02:53 AM.
 
  


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 do you check for a list of .deb dependencies without installing the deb file arthur_makowah Linux - Newbie 3 07-23-2014 11:04 PM
grub-mkconfig sees both installed oses (deb & mint), but lists both as deb part. slacker_ Linux - General 14 06-22-2014 05:07 AM
Installing VMware.bundle file Linux Mint 14 morpheusmike1229 Linux - Newbie 6 05-02-2013 12:43 PM
Deb file not installing in linux mint rng Linux - General 9 11-23-2012 06:46 PM
Installing a .deb file. inZioN Debian 1 04-14-2004 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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