LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-21-2018, 05:38 PM   #16
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925

Let's figure out where xsane is coming from:

Code:
sudo apt policy xsane
 
Old 09-21-2018, 06:07 PM   #17
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
I thought I would look at this, see what happens:

Quote:
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"??
 
Old 09-21-2018, 06:13 PM   #18
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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:

Code:
inxi -r
 
Old 09-21-2018, 10:28 PM   #19
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
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.

Thanks again, sorry to be a bother!

Last edited by Pedroski; 09-21-2018 at 10:40 PM.
 
Old 09-22-2018, 04:47 AM   #20
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
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.
 
Old 09-22-2018, 06:31 AM   #21
Pedroski
Senior Member
 
Registered: Jan 2002
Location: Nanjing, China
Distribution: Ubuntu 20.04
Posts: 2,116

Original Poster
Rep: Reputation: 73
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!
 
Old 09-22-2018, 06:43 AM   #22
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Pedroski View Post
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?
 
  


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
New Printer Scanner in Xsane finds new printer/scanner (Brother MFC-6520DW) with error message TrinityBeing Linux - Newbie 23 03-29-2016 10:27 AM
"apt-get install" gives me a really long error list when I try to install xsane tengun Linux - Software 1 11-18-2007 04:54 PM
install error message jameson SUSE / openSUSE 2 05-09-2006 02:40 PM
error message on install webwolf70 cAos 1 09-13-2004 10:35 AM
Hangs on Install & Error Message on Install... Help!!! ljr2600 Mandriva 1 08-31-2004 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:42 PM.

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