Can't install xsane. What does this message mean and what can I do?
On this laptop, I upgraded to Ubuntu 18.04, instead of a new install. I think some packages from Ubuntu 16.04 hung around. Now when I try to install xsane, I get this.
Quote:
Quote:
Quote:
|
You could try removing the libsane package and manually installing the libsane1 package.
You may need to use the "dpkg" command to install the xsane package. When you are installing something the "dpkg" command expects that you have manually downloaded the package(s) you wish to install beforehand - at least in my Ubuntu 18.04 VM anyway. As the "apt-get" command doesn't always work. eg. Code:
sudo dpkg -r libsane Code:
sudo dpkg -i /path/to/libsane1 or Code:
sudo dpkg -i --force-all /path/to/xsane Note: Replace the "/path/to/" with the correct path to said package, with the full file name for said package(s). |
To see if you have packages that aren't fully installed, could you please paste the output from:
Code:
dpkg -l | grep -v "^ii" Also, please paste the output from: Code:
inxi -r |
ouput
Thanks! Here are results from
dpkg -l | grep -v "^ii" Code:
pedro@pedro-school2:~$ dpkg -l | grep -v "^ii" Code:
pedro@pedro-school2:~$ inxi -r |
Thanks. I can't speak for the Epson or LibreOffice repos, but the others look good. The fact that you have got the Sane repo could well be causing your problems though due to confusion between the Sane versions in your normal Ubuntu repos and those provided by the Sane PPA.
As for the packages, the rc's shouldn't be a problem - those are residual configurations left behind when you delete a package but don't purge it. They can all be removed with: Code:
sudo apt purge $(dpkg -l | awk '/^rc/ {print $2}') Anyway, try purging those packages marked 'rc' as described above and then we'll continue on from there. |
Well, I did that. I won't bother you with all the output. At first I was worried it wanted to uninstall the latest kernel, so I aborted, checked against uname -a then carried on.
Code:
pedro@pedro-school2:~$ sudo apt purge $(dpkg -l | awk '/^rc/ {print $2}') Code:
pedro@pedro-school2:~$ sudo apt-get install xsane EDIT: I tried this, but get a dpkg error: Code:
pedro@pedro-school2:~$ sudo apt-get full-upgrade |
Quote:
Once again, in my VM of Ubuntu 18.04 the dpkg command using the "force-all" option can force an installation of the packages refusing to install. Please read my post #2 again and try what it says. I'm outta this thread. Good luck. |
Sorry, I struggle a bit with all this and get confused about what I should do and shouldn't do. Having read #2 and #3, I followed #3
Anyway, got this: Quote:
|
Thanks Pedroski. There was no need to try to reinstall xsane yet though - we're not quite there at this point. One thing at a time. You won't be able to upgrade until we get the sane problem worked out, but first we have to ensure that the package system, apart from sane, is in a good state.
So, next let's try reinstalling the libc-bin package: Code:
sudo apt-get --reinstall install libc-bin Code:
dpkg -l "*sane*" | grep "^ii" |
Thanks again. I ran sudo apt-get --reinstall install libc-bin there were no problems.
Here is the output of dpkg -l "*sane*" | grep "^ii" Code:
pedro@pedro-school2:~$ dpkg -l "*sane*" | grep "^ii" |
Thanks. Let's get that udev package reinstalled:
Code:
sudo apt-get --reinstall install udev |
OK, did sudo apt-get --reinstall install udev , worked fine,
and then ran dpkg -l | grep -v "^ii" again, looks better this time! Now only this Ubu 16.04 remnant left, which seems to be causing the trouble. I should have done a fresh install instead of upgrade!! I have never had any luck with upgrades and I use dejadup to back up my /home, so should not be a problem. Code:
pedro@pedro-school2:~$ dpkg -l | grep -v "^ii" |
Thanks. That does look better. "ri" means that the package is installed but marked for removal. Let's help it on its way:
Code:
apt purge libsane |
Thanks a lot, I will do that. I am a morning person, so tomorrow morning early is best.
As I said, my experience tells me, from Ubu normal repositories, xsane will not find my Epson L350 multifunction printer scanner, at least the scanner, but I can always re-enable the git-hub ppa later. So I'll disable that, purge and be damned! Let you know! |
unexpected
1 Attachment(s)
Well, the continuing saga! I know you are patient, that's good!
I ran sudo apt purge libsane, which did not report any problems. Trying to install xsane, the result was somewhat unexpected, back to the original problem: Quote:
Code:
pedro@pedro-school2:~$ dpkg -l | grep -v "^ii" Quote:
Maybe I should do a clean install? |
All times are GMT -5. The time now is 06:03 PM. |