LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-01-2009, 02:42 PM   #1
Akonbobot
Member
 
Registered: Nov 2004
Distribution: Debian, Fedora, Puppy
Posts: 43

Rep: Reputation: 15
Update your program... not


Subject: How to replace/remove a program that's linked to others without wrecking your system.

Example; e2fsprogs

Using Ubuntu 8.042, if I want to update e2fsprogs, normally I would:
# sudo apt-get remove e2fsprogs, then build from source the most recent version. Here is what would happen if I removed e2fsprogs;

# sudo apt-get remove e2fsprogs
# The following packages will be REMOVED:
apparmor apparmor-utils e2fsprogs initscripts system-services ubuntu-minimal upstart-compat-sysv

OUCH. This is 'not' what I want and would create serious mayhem.

What shoud a person do when removing a program (e2fsprogs) would
break your system by removing critical linked programs? How should
one know exactly which of the linked dependencies should be updated and which should not?

Thank you.
Akon
 
Old 02-01-2009, 04:06 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
normally I would:
# sudo apt-get remove e2fsprogs
WHAT?!?

Build a .deb yourself and upgrade the existing package. Look into apt-get source -b if the sources are available in a more recent Ubuntu version (may req. playing with sources.list), or learn how to build a .deb from the source's source (dpkg-buildpackage).
 
Old 02-01-2009, 04:55 PM   #3
Akonbobot
Member
 
Registered: Nov 2004
Distribution: Debian, Fedora, Puppy
Posts: 43

Original Poster
Rep: Reputation: 15
OK,

So if I want to download the source directly from the author, doesn't that change
your recommendation?

Thanks.
Akon
 
Old 02-01-2009, 04:56 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
or learn how to build a .deb from the source's source (dpkg-buildpackage).
 
Old 02-02-2009, 12:48 PM   #5
Akonbobot
Member
 
Registered: Nov 2004
Distribution: Debian, Fedora, Puppy
Posts: 43

Original Poster
Rep: Reputation: 15
AlucardZero,

Regarding package <e2fsprogs>

In Ubuntu 8.042 64bit, if I type: sudo apt-cache showsrc e2fsprogs
I get version: Version: 1.40.8-2ubuntu2

The author has a newer package: http://e2fsprogs.sourceforge.net/
Latest version: 1.41.4

If I build the package from source via checkinstall or dpkg-buildpackage,
I still will break my system if I remove the <e2fsprogs>.

For example: sudo apt-get remove e2fsprogs
Will remove all these: apparmor-utils [2.1+1075-0ubuntu9.1] apparmor [2.1+1075-0ubuntu9.1] ubuntu-minimal [1.102]
system-services [0.3.9-2] upstart-compat-sysv [0.3.9-2] initscripts [2.86.ds1-14.1ubuntu45.1] e2fsprogs [1.40.8-2ubuntu2].

So the problem remains, how is one to know exactly 'which' linked dependencies will also need to be updated?
In my case, I want to update <e2fsprogs>, but it's tied together in my distro (not fun) with all the above
programs.

Is there a logical approach to this problem?

Thank you
Akon
 
Old 02-02-2009, 08:13 PM   #6
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
apt-cache show e2fsprogs
 
Old 02-02-2009, 10:38 PM   #7
Akonbobot
Member
 
Registered: Nov 2004
Distribution: Debian, Fedora, Puppy
Posts: 43

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by AlucardZero View Post
apt-cache show e2fsprogs
Yes, the version in the repositories is not the most current one and apt-cache show will give you;

Package: e2fsprogs
Essential: yes
Priority: required
Section: base
Installed-Size: 1804
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Theodore Y. Ts'o <tytso@mit.edu>
Architecture: amd64
Version: 1.40.8-2ubuntu2

See message above,
The author has a newer package: http://e2fsprogs.sourceforge.net/
Latest version: 1.41.4


So the repos have: 1.40.8-2ubuntu2
and the current is: 1.41.4

Does anyone else know?

Thank you.
 
Old 02-03-2009, 07:12 PM   #8
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Does Ubuntu's apt-cache show not list dependencies? Debian's does.

Code:
alucard@karrde:~$ apt-cache show  e2fsprogs
Package: e2fsprogs
Essential: yes
Priority: required
Section: admin
Installed-Size: 1620
Maintainer: Theodore Y. Ts'o <tytso@mit.edu>
Architecture: i386
Version: 1.39+1.40-WIP-2006.11.14+dfsg-2etch1
Replaces: hurd (<= 20040301-1), libblkid1 (<< 1.38+1.39-WIP-2005.12.10-2), libuuid1 (<< 1.38+1.39-WIP-2005.12.10-2)
Pre-Depends: e2fslibs (= 1.39+1.40-WIP-2006.11.14+dfsg-2etch1), libblkid1 (>= 1.34-1), libc6 (>= 2.3.6-6), libcomerr2 (>= 1.34-1), libss2 (>= 1.34-1), libuuid1 (>= 1.34-1)
Suggests: gpart, parted, e2fsck-static
Conflicts: dump (<< 0.4b4-4), quota (<< 1.55-8.1), initscripts (<< 2.85-4), sysvinit (<< 2.85-4)
Filename: pool/main/e/e2fsprogs/e2fsprogs_1.39+1.40-WIP-2006.11.14+dfsg-2etch1_i386.deb
 
Old 02-03-2009, 07:54 PM   #9
Akonbobot
Member
 
Registered: Nov 2004
Distribution: Debian, Fedora, Puppy
Posts: 43

Original Poster
Rep: Reputation: 15
AlucardZero,

I am guessing you are trying to be helpful, thank you... but you are not.
Your comments are not focusing on my initial message that started this thread.

If no one else has an answer, I will close my comments for now.
Thank you.
 
Old 02-05-2009, 02:02 AM   #10
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
FWIW Debian's lenny and sid have packages (including amd64) for 1.41.3-1. Will that do you? I think you can install debian debs on ubuntu, yes?
cheers,
jdk
 
Old 02-05-2009, 11:44 AM   #11
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You asked how to tell what a package is dependent on, and I answered.

jdkaye, mixing Debian and Ubuntu packages is probably possible but is dangerous.
 
Old 02-05-2009, 11:21 PM   #12
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 45
Quote:
Originally Posted by Akonbobot View Post



Is there a logical approach to this problem?

Thank you
Akon

I always love it when a member gets spoon feed an answer and then acts like it's not the answer. It's like giving someone a million dollars and being told it's not real money.

Guess he just did not want to do any homework.

Last edited by 62chevy; 02-05-2009 at 11:23 PM.
 
Old 02-06-2009, 09:20 AM   #13
Akonbobot
Member
 
Registered: Nov 2004
Distribution: Debian, Fedora, Puppy
Posts: 43

Original Poster
Rep: Reputation: 15
AlcardZero, jdkaye...
Thank you for your help.

The problem is apparantly unavoidable.
If an Ubuntu 8.1 desktop user wishes to obtain the newest version
of a program available from the author ( i.e. e2fsprogs) and 'not' in the Ubuntu
repositories, in this case they can't simply remove and replace (built .deb or from source)
as the removal will also remove other programs. The linking is different for
each linux distro.

It would seem the only solution is to use a Gentoo, Linux From Scratch or Debian
So the 'linking' of programs can be customized, which isn't practicable in this
example.

As to using a debian .deb for a Ubuntu distro... thanks for the hint but
my experience has been instability when I've tried that in the past.

Regards.
 
Old 02-06-2009, 10:27 AM   #14
Seemoi
LQ Newbie
 
Registered: Feb 2009
Posts: 29

Rep: Reputation: 1
62chevy,

I am learning from this forum and am glad others
try to get and give help. I plan on doing the same if I can.

Not every question is clear, and not every answer is clearer.
If you presume others should be as clear as you and posess equal skills
you are by nature, unclear.

I also have wrecked my system many times even though I had practiced
due diligence from 'homework'.

I noticed you didn't contribute any advise.

I would like to offer that the problem of breaking dependencies is not
easily solvable at this time. You are at the mercy of whichever distribution
you choose to use. If you are using Ubuntu and you will anticipate similar
situations like the sticky one you are in now...

I'd recommend you switching distros to debian Lenny, due out in about a week.
You can make it into Ubuntu if you spend some time, and can customize your
mulit-program dependencies more.

You can try Lenny while still in Ubuntu via a virtual machine, Sun's
virtualbox would suit this fine.

Hope that contributes something to the solution.

Ciao.
Seemoi
 
Old 02-12-2009, 12:17 AM   #15
62chevy
Member
 
Registered: Mar 2002
Location: West (By God) Virginia
Distribution: Debian Squeeze - Sid
Posts: 281

Rep: Reputation: 45
Seemoi you are so right. I always admire those that have the time to spend here. It still stands that Ubuntu uses .deb files and learning to creat a .deb package would get the job done. I think it's also great that no one see "RTFM" any more. That was common when I first joind.

Best to you Seemoi.
 
  


Reply



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 to add a program to update-alternatives Mountain Linux - Software 14 06-25-2023 12:14 PM
Update Program andy1.52 Linux - Software 1 02-14-2005 04:29 PM
update program? linuxtesting2 Slackware 1 12-06-2004 05:00 AM
Program update or instalation problems Ether Mandriva 1 01-03-2004 04:50 PM
How do I update a program? MOZ Linux - Software 1 01-21-2002 01:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 08:56 AM.

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