LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-17-2008, 12:25 PM   #1
TotalLinuxNoob
Member
 
Registered: Apr 2005
Distribution: Ubuntu
Posts: 109

Rep: Reputation: 15
Removing mono broke my apt


Hello All

I recently attempted to install the latest version of mono by following this guide:

http://blog.ruski.co.za/page/Install...buntu-710.aspx

However, somewhere along the line I messed up ($ apt-get remove mono-common ) and apt/synaptic refuse to run. The errors returned are:

Code:
scrollkeeper-update: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64
dpkg: error processing tomboy (--remove):
 subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
 f-spot
 monodevelop
 tomboy
I have tried install f-spot / monodevelop for mono-common to be reinstalled without any luck.
 
Old 02-17-2008, 12:59 PM   #2
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Can you install any packages? For example
Code:
sudo apt-get install --reinstall mono-common
Since usually if apt gets messed up, you can't do anything. If you can do something, it's not deadly

Removing packages (especially ones that have a lot of dependencies) is generally not a good idea in this sort of distributions; it's easy to remove something that is more or less essential for the system to run. And it's not difficult to remove something, that depends on and removes something else, that depends on and removes something else that is then important. It is a pain keeping some packages up to date with this sort of operating systems where you rely on a package manager with dependency checks (that don't make your life easy while trying to upgrade one single package from source), and I wouldn't recommend this way of building something from source and in the process removing a binary package that has dependencies.

It is possible there is an error somewhere (for example in a script that is executed only when a package is removed, so that the error is not found during installation of that package, and since most people don't remove that package at all, the error stays hidden until you bump into it) in some package, and this is about it. Not sure, but running apt installing something, for example, should tell if it's working or not. You may have to run dpkg to configure the packages (that's one thing I mostly bump into: apt process is interrupted, after which the configuration needs to be run manually before anything else works), but if so, apt tells you that.

I would recommend doing it the apt way when upgrading a single package:
1) try to upgrade it from a reposity, if it is there
2) if it's not in the reposity, try to find a reposity where it is, or at least a single Ubuntu .deb package off the web that you can use to upgrade trough dpkg
3) if there just isn't a .deb for you, build one, and use that to upgrade - don't rush into source compilation bypassing the package manager

This is because the distribution was planned to be kept up to date with the package manager. Anything you do bypassing the package manager goes by it, and causes trouble whenever another matter depends on the manually-installed thing. The right way, when doing something "manually", is to package that manual job into a .deb and have apt install/upgrade that deb, thus keeping the strings at apt's hands rather than throw them overboard. Package management was invented to make life easier and keep track of files installed, and installing something from source (bypassing the package manager part) means "cheating" the package manager and since the package manager isn't actually intelligent, it won't fix your mistakes.

So: after you get your apt working, find a guide to build the source code and instead of installing it (as in "make install") turning it into a .deb package, and use that way. It just saves you a lot if you learn it once.
 
Old 02-17-2008, 01:18 PM   #3
TotalLinuxNoob
Member
 
Registered: Apr 2005
Distribution: Ubuntu
Posts: 109

Original Poster
Rep: Reputation: 15
Wow, thank you for your elaborate answer.

I have tried reinstalling it. Output is the same (here's the complete output):

Code:
apt-get install mono-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  monodoc-manual libfbclient1 libikvm-native firebird1.5-common libnunit-doc
  libgdiplus
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  f-spot monodevelop tomboy
The following NEW packages will be installed:
  mono-common
0 upgraded, 1 newly installed, 3 to remove and 82 not upgraded.
3 not fully installed or removed.
Need to get 0B/109kB of archives.
After unpacking 22.5MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 222500 files and directories currently installed.)
Removing f-spot ...
scrollkeeper-update: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64
dpkg: error processing f-spot (--remove):
 subprocess post-removal script returned error exit status 127
Removing monodevelop ...
update-mime-database: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64
dpkg: error processing monodevelop (--remove):
 subprocess post-removal script returned error exit status 127
Removing tomboy ...
scrollkeeper-update: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64
dpkg: error processing tomboy (--remove):
 subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
 f-spot
 monodevelop
 tomboy
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@Erinyes:/home/fabian# sudo apt-get install --reinstall mono-common
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  monodoc-manual libfbclient1 libikvm-native firebird1.5-common libnunit-doc
  libgdiplus
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  f-spot monodevelop tomboy
The following NEW packages will be installed:
  mono-common
0 upgraded, 1 newly installed, 3 to remove and 82 not upgraded.
3 not fully installed or removed.
Need to get 0B/109kB of archives.
After unpacking 22.5MB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 222500 files and directories currently installed.)
Removing f-spot ...
scrollkeeper-update: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64
dpkg: error processing f-spot (--remove):
 subprocess post-removal script returned error exit status 127
Removing monodevelop ...
update-mime-database: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64
dpkg: error processing monodevelop (--remove):
 subprocess post-removal script returned error exit status 127
Removing tomboy ...
scrollkeeper-update: symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64
dpkg: error processing tomboy (--remove):
 subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
 f-spot
 monodevelop
 tomboy
E: Sub-process /usr/bin/dpkg returned an error code (1)
On turning source code into packages I have found this thread: http://ubuntuforums.org/showthread.php?t=118762 but, like you said, I'll first need to get apt working again.
 
Old 02-18-2008, 03:04 PM   #4
TotalLinuxNoob
Member
 
Registered: Apr 2005
Distribution: Ubuntu
Posts: 109

Original Poster
Rep: Reputation: 15
I'm guessing apt maintains a list somewhere with jobs left to run like removing my apps dependent on mono. Is there not a way to temporarily remove these from it's tasks/'to do' list, reinstall mono and have it run properly again?
 
Old 03-11-2008, 02:48 PM   #5
TotalLinuxNoob
Member
 
Registered: Apr 2005
Distribution: Ubuntu
Posts: 109

Original Poster
Rep: Reputation: 15
My apt more or less works again.. apps like firefox do have a tendency to crash though, notifying me of the following problem..:
Code:
 symbol lookup error: /usr/lib/libxml2.so.2: undefined symbol: gzopen64
 
  


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
Broke my Apt-get ecturkum Linux - Newbie 8 02-28-2007 06:08 AM
HELP! I broke APT cerealdaemon Ubuntu 4 04-29-2006 10:03 PM
I broke apt, sort of coldsalmon Debian 4 06-08-2005 04:47 AM
apt-get broke! jon_k Linux - Software 1 11-07-2004 02:14 PM
Broke apt .5.20 Modify Linux - General 0 01-13-2004 12:37 AM

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

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