LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-24-2011, 05:00 PM   #1
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Rep: Reputation: 15
apt: Can I get to to ignore an unmet dependancy?


Hi guys. Tried searching for this, but can't seem to get a straight answer.

I wanted to install Scratch from MIT onto my Debian Squeeze Laptop. My Yr 7 students are using it as an intro to programming & I want to set up a few projects at home before lessons.

Scratch only offers a .deb for Ubuntu, which I can use to install to Squeeze - the app installs fine using dpkg.

Issue is, apt then complains of an unmet dependancy due to the fact that pulseaudio is an earlier version on Squeeze than Scratch is listed as needing.

Now this is not a problem for the running of the application. It doesn't actually NEED pulseaudio. It's a trivial fix to point Scratch to ALSA once installed & all is well sound-wise. Life can carry on as normal. However...

Apt then refuses to install or upgrade anything else as it continues to complain that Scratch has an unmet dependency.

Essentially, all I want apt to do is let that one unmet dependancy pass & carry on as normal.

I've installed the .deb with the --force-all option to see if that allowed apt to ignore the unmet dep. - No joy.

Don't get me wrong, the app is installed & fine to use. It's just that if I want to install something else via apt I must run

apt-get -f install (remove scratch)

apt-get install (get the new app I'm after)

dpkg -i scratch_x.deb (put scratch back)

Is there any solution to this? There must be but I just can't seem to find one.
 
Old 03-24-2011, 05:15 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
What you probably need to do is use

https://launchpad.net/~scratch/+arch....1.orig.tar.gz

and then configure, make and use checkinstall to build the .deb and install

Last edited by andrewthomas; 03-24-2011 at 05:22 PM.
 
1 members found this post helpful.
Old 03-24-2011, 06:14 PM   #3
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Original Poster
Rep: Reputation: 15
I'll give that a whirl now. Much obliged!
 
Old 03-24-2011, 07:35 PM   #4
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Original Poster
Rep: Reputation: 15
Hmm, install didn't quite make it.

./configure script doesn't exist. Took a look at the documentation on the MIT website & I think I just need to "make"

When I ran make there were a few warnings, but a Makefile was generated.

Ran checkinstall which failed with the following error:

Code:
========================= Installation results ===========================
make: *** No rule to make target `install'.  Stop.

****  Installation failed. Aborting package creation.
Took a look at the Makefile & found the following information:

Code:
all: clean build

build:
        $(MAKE) build -C src/plugins/scratch/
        $(MAKE) build -C src/plugins/unicode/
        $(MAKE) build -C src/plugins/camera/
        
clean:
        $(MAKE) clean -C src/plugins/scratch/
        $(MAKE) clean -C src/plugins/unicode/
        $(MAKE) clean -C src/plugins/camera/
Yup, no target defined there. I always thought that was ./configure's job...

As far as I'm concerned, Scratch can reside in /opt out the way. Is there a way that I can manually edit Makefile to provide checkinstall with that information?

Sorry this is straying from apt-related topic. Any advice appreciated.
 
Old 03-24-2011, 09:28 PM   #5
j1alu
Member
 
Registered: Apr 2009
Distribution: debian gnu/linux
Posts: 798

Rep: Reputation: Disabled
What you could try is to unpack the deb package:
scratch_1.4.0.1-0ubuntuX_i386.deb
and change the version number in the control file
(perhaps even remove it completely)

In short you unpack the deb-package with
ar x *deb
unpack the control.tar.gz with
tar -xzf control.tar.gz
edit the control file with the available version:
http://packages.debian.org/squeeze/pulseaudio
repack the control.tar.gz file
tar -czf control.tar.gz control md5sum post*
and repack the deb package:
ar r scratch_1.4.0.1-0ubuntuX_i386.deb debian-binary control.tar.gz data.tar.gz

Like explained for example here:
http://plug-and-pray.blogspot.com/20...b-package.html
(search term is: repack or unpack a deb package)

If that is a good idea or will burn the house down is beyond me.
But you might keep it as an option in mind.
Good luck, take care.
 
2 members found this post helpful.
Old 03-25-2011, 08:54 AM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Posts: 1,384

Rep: Reputation: Disabled
Did you try getting an unpackaged version of the program or building from source?
 
Old 03-25-2011, 09:36 AM   #7
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 307Reputation: 307Reputation: 307Reputation: 307
Check out the latest README

http://my-svn.assembla.com/svn/scrat...tch/README.txt

Since Scratch runs as an image on an interpreter, all that needs to be compiled are the necessary plugins, which can be done using the included makefile (type "make" in the top level directory to run the commands in the Makefile). The following libraries are necessary to build the plugins:
libcairo2-dev (>= 1.8.6), libpango1.0-dev (>= 1.20.5), libglib2.0-dev (>= 2.20.1), libv4l-dev (>= 0.5.8)
 
Old 03-25-2011, 12:29 PM   #8
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,229

Rep: Reputation: 175Reputation: 175
I agree with j1alu (post #5).

Do not use checkinstall (it will harm your package manager).
Yet an other howto (using debian sources):
http://raphaelhertzog.com/2010/12/15...bian-packages/

Last edited by jens; 03-25-2011 at 10:32 PM.
 
Old 03-25-2011, 04:58 PM   #9
Swampy
Member
 
Registered: Jan 2003
Location: Dover, Kent
Distribution: Debian 6.0.1 (Squeeze)
Posts: 133

Original Poster
Rep: Reputation: 15
Went with j1alu's advice - Brilliant!

Simply removed the dependancy (I've hooked Scratch up to alsa in any case, so why they specified pulseaudio as a dependancy is beyond me. I suppose they had to pick a default sound output of some sort)

Repacked as directed & used dpkg -i

Perfik! apt behaving beautifully.

Thanks to all for the advice. Will read up all these HOWTOs as well. Want to start getting the pupils installing Linux on their home systems, so need to mug up on these issues, make sure they're supported.
 
Old 01-30-2013, 09:07 AM   #10
masuch
Member
 
Registered: Sep 2011
Location: /dev/null
Distribution: ubuntu 64bits
Posts: 135

Rep: Reputation: 1
Quote:
Originally Posted by j1alu View Post
What you could try is to unpack the deb package:
scratch_1.4.0.1-0ubuntuX_i386.deb
and change the version number in the control file
(perhaps even remove it completely)

In short you unpack the deb-package with
ar x *deb
unpack the control.tar.gz with
tar -xzf control.tar.gz
edit the control file with the available version:
http://packages.debian.org/squeeze/pulseaudio
repack the control.tar.gz file
tar -czf control.tar.gz control md5sum post*
and repack the deb package:
ar r scratch_1.4.0.1-0ubuntuX_i386.deb debian-binary control.tar.gz data.tar.gz

Like explained for example here:
http://plug-and-pray.blogspot.com/20...b-package.html
(search term is: repack or unpack a deb package)

If that is a good idea or will burn the house down is beyond me.
But you might keep it as an option in mind.
Good luck, take care.
thanks a lot.
 
  


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
apt-get has unmet dependencies, but apt-get -f install doesn't solve problem sophanox Linux - Software 1 02-23-2011 11:07 AM
unmet dependencies on apt-get datchie Linux - Newbie 2 11-18-2009 04:07 AM
apt-get unmet dependencies, etc. knappster Linux - Software 13 12-14-2005 11:06 PM
apt-get unmet dependencies jeffbarish Debian 9 10-27-2005 01:19 AM
apt + KDE3 = unmet dependencies hypermegachi Debian 2 09-29-2003 10:18 AM


All times are GMT -5. The time now is 11:06 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration