[SOLVED] Can't install xsane. What does this message mean and what can I do?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
pedro@pedro-school2:~$ sudo apt-get install libsane
[sudo] password for pedro:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libsane1' instead of 'libsane'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libsane1 : Depends: libsane-common (= 1.0.27-1~experimental3ubuntu2) but 1.0.27+git20180809-xenial0 is to be installed
Recommends: sane-utils (>= 1.0.27-1~experimental3ubuntu2)
E: Unable to correct problems, you have held broken packages.
pedro@pedro-school2:~$
I have disabled the git-sane ppa in 'Software and Updates', which then updated the cache.
Why does it say "but 1.0.27+git20180809-xenial0 is to be installed"??
Pedroski, we need to go back to basics. Those basics are to confirm that your software sources are the standard ones and that all your sane packages are purged. Then we can install from the standard repos. I would like to confirm that we can get to this stage first of all before going any further.
So, let's do that. And, sorry for asking, but please don't divert from these steps for the moment by trying to install packages etc.
If you agree, first let's check the software sources:
Well thanks a lot for all the tips. I think I can finally stop bothering you. I had an idea:
Quote:
The following packages have unmet dependencies:
libsane1 : Depends: libsane-common (= 1.0.27-1~experimental3ubuntu2) but 1.0.27+git20180809-xenial0 is to be installed
Recommends: sane-utils (>= 1.0.27-1~experimental3ubuntu2)
E: Unable to correct problems, you have held broken packages.
So I thought I would try this:
Quote:
pedro@pedro-school2:~$ sudo apt-get install libsane-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
libsane-common is already the newest version (1.0.27+git20180809-xenial0).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Which says "libsane-common is already the newest version (1.0.27+git20180809-xenial0)."
But 18.04 is called Bionic, so I thought, 'Purge some more.' I did this:
Quote:
pedro@pedro-school2:~$ sudo apt purge libsane-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
libsane-common*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 4,968 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 216241 files and directories currently installed.)
Removing libsane-common (1.0.27+git20180809-xenial0) ...
dpkg: warning: while removing libsane-common, directory '/usr/share/hal/fdi/preprobe/10osvendor' not empty so not removed
Processing triggers for man-db (2.8.3-2) ...
The above is pretty much what jsbjsb001 suggested in post #2, so he was definitely on the right track and thanks for that, just didn't work with dkpg -r
After that, the following worked. Also, xsane started and recognized my scanner immediately!! That surprised me!
Quote:
pedro@pedro-school2:~$ sudo apt-get install xsane
So, now I have to reinstall iscan, but that's not too hard.
Yay! Congrats. This sort of problem occurs when different repos have clashing versions of packages. For example, repo A might have package A that depends on a package B and another repo has a newer version of package A that depends on an older version of package B, that sort of thing. Usually my advice in this case is to remove one of the repos, remove all the affected packages, and then reinstall them from afresh from the remaining repo.
Yeah, and the upgrade instead of a fresh install did not help.
I try to keep this older laptop and the newer one more or less in sync, because I rely on my laptop for work. If one won't do it, the other can stand in. I bought an ssd drive which was a bit dodgy, although Toshiba said it passed their test when I returned it. Whatever, my marking program went haywire. I had to rely on my older laptop until I got a new ssd.
Add to that, 18.04 is very unstable still, more like a beta.
Next time I will definitely do a fresh install!
Thanks for your tips and advice, much appreciated!
Yeah, and the upgrade instead of a fresh install did not help.
I try to keep this older laptop and the newer one more or less in sync, because I rely on my laptop for work. If one won't do it, the other can stand in. I bought an ssd drive which was a bit dodgy, although Toshiba said it passed their test when I returned it. Whatever, my marking program went haywire. I had to rely on my older laptop until I got a new ssd.
Add to that, 18.04 is very unstable still, more like a beta.
Next time I will definitely do a fresh install!
Thanks for your tips and advice, much appreciated!
Generally I do an in-situ upgrade for the minor point releases of my Mint distro, e.g. 18.2->18.3, but I do a fresh install for the major releases, e.g. 18.x->19. It takes a few hours to do the fresh install as my system has quite a lot of non-repo software installed and configuration to be carried out, but it also allows me to do a two-yearly spring clean and make sure that my installation and configuration notes are up-to-date
However, what I do is set up new root and home partitions on my disk and use those to install the new version. I then work on getting the new version into shape for my needs, knowing that I can dual boot into the old version any time I want if the new version isn't quite getting something right. Once the new version is working well then I ditch the old version.
This time round I installed the Mint 19 Beta right at the start. There were quite a few things to sort out but I had moved over completely within about 3-4 weeks.
What in particular are you personally finding unstable about 18.04?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.