Need to learn how to overcome dependencies on install

New to SolydXK? This is the place to start.
Please check the other subforums to see if there's a more suitable place for your question.
User avatar
rghollenbeck
Posts: 12
Joined: 21 Nov 2013 05:09

Need to learn how to overcome dependencies on install

Postby rghollenbeck » 16 Feb 2014 02:30

How do I learn the dependencies needed to install a program? Then to correct dependencies problems.

I went to Software Manager and got nothing but a rotating narrow rectangle as if to say, "Working...." So I closed that and opened a console and typed "sudo apt-get install openshot" so I can edit some videos I shot at this afternoon's wedding. I was missing some dependencies. I could say exactly what the dependencies are, but they seem to be many. Each dependency seems to have another dependency. This could go on forever. Maybe I am doing something wrong. I guess I need to understand the process of correcting dependencies in general rather than ask for specific help on this specific problem. I have the same problem installing my printer and other software.

I'm not asking for somebody to figure out everything for me. Otherwise, I would have to ask every time I need to install something. I need a clue--a transferable concept--that I can use every time I get into this kind of situation.

I think I probably need to generate a tree of dependencies and learn a smart approach to solving these dependency issues as they arrise.

Thanks.

User avatar
cobb
Posts: 40
Joined: 29 Jan 2014 00:46
Location: Valley Forge PA

Re: Need to learn how to overcome dependencies on install

Postby cobb » 16 Feb 2014 03:20

I personally prefer Synaptic Package Manager to Software Manager as I think there's less chance for that type of issue using Synaptic. You could try to uninstall it using Synaptic then re-install. You can also view dependencies there. But if you know the name of the application you want to install a quick and dirty command line is:

Code: Select all

apt-cache show openshot
Here's a good reference for some background:-> http://forums.solydxk.nl/viewtopic.php?f=9&t=256
Technology slave by coincidence.. Linux user by choice.

User avatar
rghollenbeck
Posts: 12
Joined: 21 Nov 2013 05:09

Re: Need to learn how to overcome dependencies on install

Postby rghollenbeck » 16 Feb 2014 03:37

cobb wrote:I personally prefer Synaptic Package Manager to Software Manager as I think there's less chance for that type of issue using Synaptic. You could try to uninstall it using Synaptic then re-install. You can also view dependencies there. But if you know the name of the application you want to install a quick and dirty command line is:

Code: Select all

apt-cache show openshot
Here's a good reference for some background:-> http://forums.solydxk.nl/viewtopic.php?f=9&t=256
Exactly what I was hoping to learn! Many thanks. :D

So I already attempted to correct some of the missing dependencies using apt-get. Are you saying I should try to uninstall those too using Synaptic? Or just uninstall openshot? I don't even remember what they were. I think one of the dependencies had to do with python. Such a newbie nightmare!

I will attempt your solution immediately and use Synaptic from now on.
I will run the code you suggested:

Code: Select all

apt-cache show openshot

and then look at the link you provided.
Thank you very much.

User avatar
cobb
Posts: 40
Joined: 29 Jan 2014 00:46
Location: Valley Forge PA

Re: Need to learn how to overcome dependencies on install

Postby cobb » 16 Feb 2014 03:49

rghollenbeck wrote:So I already attempted to correct some of the missing dependencies using apt-get. Are you saying I should try to uninstall those too using Synaptic? Or just uninstall openshot? I don't even remember what they were. I think one of the dependencies had to do with python. Such a newbie nightmare!
I wouldn't worry about uninstalling any of the dependencies you tried to fix for now, just use synaptic to uninstall openshot and reinstall it. When you select it in synaptic, right click on it and look at properties. also when you first load up synaptic, do a "reload" from the toolbar to "freshen" the packages. Then use the quick search to find openshot.
Technology slave by coincidence.. Linux user by choice.

User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: Need to learn how to overcome dependencies on install

Postby ScottQuier » 16 Feb 2014 19:22

@rghollenbeck

My sense as relating to packages is that there are a number "levels":
  1. Software Manager - you search and find the program you are looking for and the SM goes and pulls the various packages needed for a successful install. It does it all under the covers and you never really know what it's doing. At least I've not taken the time to investigate further to find out whether or not it will provide you all the details.
  2. Synaptic Package Manager - provides a GUI into selecting packages for installation. It will also use a database to help ensure that all dependencies are resolved and installed.
  3. aptitude - is a package manager for Debian GNU/Linux systems that provides a frontend to the apt package management infrastructure. aptitude is a text-based interface using the curses library, it can be used to perform management tasks in a fast and easy way.
  4. apt-get - does not understand .deb files, it works with the packages proper name and can only install .deb archives from a source specified in /etc/apt/sources.list. apt-get will call dpkg directly after downloading the .deb archives from the configured sources. Just like SPM, apt-get will, if possible, resolve and install all required dependencies.
  5. dpkg - This is the main package management program. dpkg can be invoked with many options. This command DOES understand .deb archives and it's possible to install a program using only dpkg .... if you know all the dependencies.
As I cut my teeth on MSDOS 3.01, when all you had was a command-line, I tend to prefer apt-get. But, that's just me. :)

With respect to installing openshot, this is what should happen if you were to use apt-get to install on a properly updated SolydXK installation:

Code: Select all

scott@kde-compile ~ $ sudo apt-get install openshot
[sudo] password for scott: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  frei0r-plugins libgavl1 libgoocanvas-common libgoocanvas3 libmlt++3 libmlt-data libmlt6 libquicktime2 libsox-fmt-alsa libsox-fmt-base
  libsox2 melt openshot-doc python-mlt python-pygoocanvas
Suggested packages:
  libsox-fmt-all blender inkscape
The following NEW packages will be installed:
  frei0r-plugins libgavl1 libgoocanvas-common libgoocanvas3 libmlt++3 libmlt-data libmlt6 libquicktime2 libsox-fmt-alsa libsox-fmt-base
  libsox2 melt openshot openshot-doc python-mlt python-pygoocanvas
0 upgraded, 16 newly installed, 0 to remove and 0 not upgraded.
Need to get 34.2 MB of archives.
After this operation, 87.6 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://www.tuxlinuxnews.com/solydxk/debian/production/ testing/main libgavl1 amd64 1.4.0-1 [4,088 kB]
Get:2 http://www.tuxlinuxnews.com/solydxk/debian/production/multimedia/ testing/main libquicktime2 amd64 3:1.2.4-dmo4 [271 kB]
Get:3 http://www.tuxlinuxnews.com/solydxk/debian/production/ testing/main libsox2 amd64 14.4.1-3 [301 kB]
Get:4 http://www.tuxlinuxnews.com/solydxk/debian/production/multimedia/ testing/main libmlt6 amd64 1:0.9.0-dmo10 [640 kB]
Get:5 http://www.tuxlinuxnews.com/solydxk/debian/production/multimedia/ testing/main libmlt++3 amd64 1:0.9.0-dmo10 [113 kB]
Get:6 http://www.tuxlinuxnews.com/solydxk/debian/production/multimedia/ testing/main frei0r-plugins amd64 1:1.4-dmo4 [371 kB]
Get:7 http://www.tuxlinuxnews.com/solydxk/debian/production/ testing/main libgoocanvas-common all 0.15-1.1 [37.4 kB]
Get:8 http://www.tuxlinuxnews.com/solydxk/debian/production/ testing/main libgoocanvas3 amd64 0.15-1.1 [116 kB]
Get:9 http://www.tuxlinuxnews.com/solydxk/debian/production/multimedia/ testing/main libmlt-data all 1:0.9.0-dmo10 [377 kB]
Get:10 http://www.tuxlinuxnews.com/solydxk/debian/production/ testing/main libsox-fmt-alsa amd64 14.4.1-3 [47.6 kB]
Get:11 http://www.tuxlinuxnews.com/solydxk/debian/production/ testing/main libsox-fmt-base amd64 14.4.1-3 [91.1 kB]
Get:12 http://www.tuxlinuxnews.com/solydxk/debian/production/multimedia/ testing/main melt amd64 1:0.9.0-dmo10 [128 kB]
Get:13 http://www.tuxlinuxnews.com/solydxk/debian/production/multimedia/ testing/main python-mlt amd64 1:0.9.0-dmo10 [161 kB]
Get:14 http://www.tuxlinuxnews.com/solydxk/debian/production/ testing/main python-pygoocanvas amd64 0.14.1-1+b3 [111 kB]
Get:15 http://www.tuxlinuxnews.com/solydxk/debian/production/multimedia/ testing/main openshot all 1.4.3-dmo4 [20.3 MB]
Get:16 http://www.tuxlinuxnews.com/solydxk/debian/production/multimedia/ testing/main openshot-doc all 1.4.3-dmo4 [7,035 kB]                   
Fetched 34.2 MB in 13s (2,597 kB/s)                                                                                                            
Selecting previously unselected package libgavl1:amd64.
(Reading database ... 147442 files and directories currently installed.)
Preparing to unpack .../libgavl1_1.4.0-1_amd64.deb ...
Unpacking libgavl1:amd64 (1.4.0-1) ...
Selecting previously unselected package libquicktime2:amd64.
Preparing to unpack .../libquicktime2_3%3a1.2.4-dmo4_amd64.deb ...
Unpacking libquicktime2:amd64 (3:1.2.4-dmo4) ...
Selecting previously unselected package libsox2:amd64.
Preparing to unpack .../libsox2_14.4.1-3_amd64.deb ...
Unpacking libsox2:amd64 (14.4.1-3) ...
Selecting previously unselected package libmlt6:amd64.
Preparing to unpack .../libmlt6_1%3a0.9.0-dmo10_amd64.deb ...
Unpacking libmlt6:amd64 (1:0.9.0-dmo10) ...
Selecting previously unselected package libmlt++3:amd64.
Preparing to unpack .../libmlt++3_1%3a0.9.0-dmo10_amd64.deb ...
Unpacking libmlt++3:amd64 (1:0.9.0-dmo10) ...
Selecting previously unselected package frei0r-plugins.
Preparing to unpack .../frei0r-plugins_1%3a1.4-dmo4_amd64.deb ...
Unpacking frei0r-plugins (1:1.4-dmo4) ...
Selecting previously unselected package libgoocanvas-common.
Preparing to unpack .../libgoocanvas-common_0.15-1.1_all.deb ...
Unpacking libgoocanvas-common (0.15-1.1) ...
Selecting previously unselected package libgoocanvas3.
Preparing to unpack .../libgoocanvas3_0.15-1.1_amd64.deb ...
Unpacking libgoocanvas3 (0.15-1.1) ...
Selecting previously unselected package libmlt-data.
Preparing to unpack .../libmlt-data_1%3a0.9.0-dmo10_all.deb ...
Unpacking libmlt-data (1:0.9.0-dmo10) ...
Selecting previously unselected package libsox-fmt-alsa:amd64.
Preparing to unpack .../libsox-fmt-alsa_14.4.1-3_amd64.deb ...
Unpacking libsox-fmt-alsa:amd64 (14.4.1-3) ...
Selecting previously unselected package libsox-fmt-base:amd64.
Preparing to unpack .../libsox-fmt-base_14.4.1-3_amd64.deb ...
Unpacking libsox-fmt-base:amd64 (14.4.1-3) ...
Selecting previously unselected package melt.
Preparing to unpack .../melt_1%3a0.9.0-dmo10_amd64.deb ...
Unpacking melt (1:0.9.0-dmo10) ...
Selecting previously unselected package python-mlt.
Preparing to unpack .../python-mlt_1%3a0.9.0-dmo10_amd64.deb ...
Unpacking python-mlt (1:0.9.0-dmo10) ...
Selecting previously unselected package python-pygoocanvas.
Preparing to unpack .../python-pygoocanvas_0.14.1-1+b3_amd64.deb ...
Unpacking python-pygoocanvas (0.14.1-1+b3) ...
Selecting previously unselected package openshot.
Preparing to unpack .../openshot_1.4.3-dmo4_all.deb ...
Unpacking openshot (1.4.3-dmo4) ...
Selecting previously unselected package openshot-doc.
Preparing to unpack .../openshot-doc_1.4.3-dmo4_all.deb ...
Unpacking openshot-doc (1.4.3-dmo4) ...
Processing triggers for man-db (2.6.5-2) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Processing triggers for mime-support (3.54) ...
Processing triggers for shared-mime-info (1.0-1+b1) ...
Unknown media type in type 'all/all'
Unknown media type in type 'all/allfiles'
Unknown media type in type 'uri/mms'
Unknown media type in type 'uri/mmst'
Unknown media type in type 'uri/mmsu'
Unknown media type in type 'uri/pnm'
Unknown media type in type 'uri/rtspt'
Unknown media type in type 'uri/rtspu'
Setting up libgavl1:amd64 (1.4.0-1) ...
Setting up libquicktime2:amd64 (3:1.2.4-dmo4) ...
Setting up libsox2:amd64 (14.4.1-3) ...
Setting up frei0r-plugins (1:1.4-dmo4) ...
Setting up libgoocanvas-common (0.15-1.1) ...
Setting up libgoocanvas3 (0.15-1.1) ...
Setting up libmlt-data (1:0.9.0-dmo10) ...
Setting up libsox-fmt-alsa:amd64 (14.4.1-3) ...
Setting up libsox-fmt-base:amd64 (14.4.1-3) ...
Setting up python-pygoocanvas (0.14.1-1+b3) ...
Setting up openshot-doc (1.4.3-dmo4) ...
Setting up libmlt6:amd64 (1:0.9.0-dmo10) ...
Setting up libmlt++3:amd64 (1:0.9.0-dmo10) ...
Setting up melt (1:0.9.0-dmo10) ...
Setting up python-mlt (1:0.9.0-dmo10) ...
Setting up openshot (1.4.3-dmo4) ...
Processing triggers for libc-bin (2.17-97) ...
Processing triggers for python-support (1.0.15) ...
scott@kde-compile ~ $ 
See the attached for shot of the menu...
openshot.jpeg
openshot.jpeg (52.95 KiB) Viewed 1771 times
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"

User avatar
cobb
Posts: 40
Joined: 29 Jan 2014 00:46
Location: Valley Forge PA

Re: Need to learn how to overcome dependencies on install

Postby cobb » 16 Feb 2014 21:02

ScottQuier wrote:My sense as relating to packages is that there are a number "levels":
  1. Software Manager - you search and find the program you are looking for and the SM goes and pulls the various packages needed for a successful install. It does it all under the covers and you never really know what it's doing. At least I've not taken the time to investigate further to find out whether or not it will provide you all the details.
  2. Synaptic Package Manager - provides a GUI into selecting packages for installation. It will also use a database to help ensure that all dependencies are resolved and installed.
  3. aptitude - is a package manager for Debian GNU/Linux systems that provides a frontend to the apt package management infrastructure. aptitude is a text-based interface using the curses library, it can be used to perform management tasks in a fast and easy way.
  4. apt-get - does not understand .deb files, it works with the packages proper name and can only install .deb archives from a source specified in /etc/apt/sources.list. apt-get will call dpkg directly after downloading the .deb archives from the configured sources. Just like SPM, apt-get will, if possible, resolve and install all required dependencies.
  5. dpkg - This is the main package management program. dpkg can be invoked with many options. This command DOES understand .deb archives and it's possible to install a program using only dpkg .... if you know all the dependencies.
Fantastic explanation Scott. You just doubled my knowledgebase with that.. :lol: That's why you have the cool beard.
Technology slave by coincidence.. Linux user by choice.

User avatar
ScottQuier
Posts: 1781
Joined: 18 Jul 2013 15:55
Location: Newport News, VA

Re: Need to learn how to overcome dependencies on install

Postby ScottQuier » 16 Feb 2014 21:28

cobb wrote: That's why you have the cool beard.
You don't really think that's a picture of me do you? I'm almost bald and couldn't grow a beard if my life depended on it.

Anyway, I'm just glad that helped someone out.
Scott
Quoting zerozero, "The usage of PPA's in debian-based
systems is risky at best and entails serious compatibility
problems; usually it's the best way to destroy an install"

User avatar
Zill
Posts: 1850
Joined: 13 Aug 2013 14:28
Location: Lincolnshire, UK

Re: Need to learn how to overcome dependencies on install

Postby Zill » 17 Feb 2014 20:32

rghollenbeck: As long as you are installing software via the Software Manager, Synaptic or apt-get you really should not be getting any dependency problems. All dependencies should be taken care of automatically via the packaging system.

If openshot is still complaining about missing dependencies then I suggest this may mean that your sources list is not correct and is therefore not pointing to the right repos.

Please post the full output of the following command so that we can check your current sources list:

Code: Select all

cat /etc/apt/sources.list


Return to “Newbie Questions”

Who is online

Users browsing this forum: No registered users and 12 guests