<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Ok, so status so far is that I got every package uninstalled and marked for reinstallation except the samba-common-bin.<br>When issuing a apt-get update and upgrade I end up with the following:<br><br>Reading package lists... Done<br>Building dependency tree       <br>Reading state information... Done<br>The following packages will be upgraded:<br>  samba-common-bin<br>1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.<br>1 not fully installed or removed.<br>Need to get 0 B/6,153 kB of archives.<br>After this operation, 14.3 kB of additional disk space will be used.<br>Do you want to continue [Y/n]? <br>Setting up samba-common-bin (2:3.6.3-2ubuntu2.1) ...<br>update-alternatives: error: /var/lib/dpkg/alternatives/net corrupt: line not terminated while trying to read status<br>dpkg: error processing samba-common-bin (--configure):<br> subprocess installed post-installation script returned error exit status 2<br>Errors were encountered while processing:<br> samba-common-bin<br>E: Sub-process /usr/bin/dpkg returned an error code (1)<br><br>A cat of the /var/lib/dpkg/alternatives/net looks like this:<br><br>../../../../../share/pyshared/softwareproperties/gtk/DialogAddSourcesList.py<br><br>I already checked my hard drive for any errors, nothing found. What to do to wrap this up and reinstall all packages properly?<br><br>Cheers,<br>Dave<br><br><br><div><div id="SkyDrivePlaceholder"></div><hr id="stopSpelling">Date: Wed, 22 Aug 2012 21:06:21 -0400<br>Subject: Re: Update Problems<br>From: joelol75@gmail.com<br>To: ubuntu-users@lists.ubuntu.com<br>CC: lproven@gmail.com<br><br><p dir="ltr">I would try some stuff....  Be careful, if it looks like a step will remove many packages.. cancel it.<br></p>
<p dir="ltr">First i would love to see the output of:</p>
<p dir="ltr">cat /var/lib/dpkg/alternatives/x-www-browser</p>
<p dir="ltr">If it looks like there's corrupted crap in there I would garner as much info about what browsers are in it if possible and recreate it.  Just because you have konqueror doesn't make a ubuntu/kubuntu plahplah whatever.  My install started with Linux Mint 13 Cinnamon, I then installed Mate, kde, unity, gnome-shell and more. I changed to kdm from lightdm and allowed some config files to rename 'Mint' to 'Ubuntu' so what distro should I call it?  Anyway... back on topic.  My file lists as:</p>

<p dir="ltr">auto<br>
/usr/bin/x-www-browser<br>
x-www-browser.1.gz<br>
/usr/share/man/man1/x-www-browser.1.gz</p>
<p dir="ltr">/usr/bin/chromium-browser<br>
40</p>
<p dir="ltr">/usr/bin/firefox<br>
40</p>
<p dir="ltr">/usr/bin/konqueror<br>
30<br>
/usr/share/man/man1/konqueror.1.gz<br>
/usr/bin/rekonq<br>
40</p>
<p dir="ltr">Ok. To specify in exactness, 'auto' is on the very first line, and there seems to be 3 empty lines after the last '40' if it matters.</p>
<p dir="ltr">If yours is messed up, I would at least put the browser you will use in there.  The first entry '/usr/bin/x-www-browser' is a symlink on my system pointing to /etc/alternatives/x-www-browser which on listing this file is a launcher script for chromium.  I set this as default browser so I assume that is why that generic link is there as 1st entry.  I have no idea why konquror gets a 30 instead of 40...</p>

<p dir="ltr">Anyway. After that maybe i'd try</p>
<p dir="ltr">sudo dpkg --reconfigure -a</p>
<p dir="ltr">Followed by the apt-get install -f again,  followed by seeing how bad the damage would be with an:</p>
<p dir="ltr">sudo apt-get remove --purge firefox firefox-branding firefox-globalmenu firefox-gnome-support konqueror samba-common-bin nautilus-share</p>
<p dir="ltr">Then try reinstalling.  </p>
<p dir="ltr">File corruption is odd and worry some.  Flaky ram.  Ssd/hdd fritzen out, too high of overclock, bad sata cables, mobo on the way out, high amounts of gamma radiation from the current solar maximum penetrating the earths magnetosphere..  Every time I see that more than once on the same system [after complete rewipes and distros]  </p>

<p dir="ltr">Anyway, hope ya sort it.  Ohhh btw, firefox settings are in your home directory [hidden .mozilla or .firefox directory iirc]  just rename or copy it before purge.  I would worry more about borked dpkg than losing firefox settings.</p>

<p dir="ltr">Good luck in your endeavors.</p>
<p dir="ltr"> </p>
<br>-- 
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</div>                                     </div></body>
</html>