Another "Broken Dependancies" problem [SOLVED]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Gixxer
Level 1
Level 1
Posts: 12
Joined: Sat Aug 02, 2014 11:12 am

Another "Broken Dependancies" problem [SOLVED]

Post by Gixxer »

Hi,
I got a major problem after running update manager the other day, my Mint Linux 19.3 Cinnamon system had so many problems, I ended up using Timeshift to reinstall a 4 day old backup, this solved almost everything. Update manager then showed 28 updates needed. I tried just selecting one package to update -Thunderbird -, (as I had a feeling the trying to update so many packages at once was one of the problems that led to the previous failure) and ended up with an error of "Broken packages" or some such.

Short version: looks like my version of thunderbird is too old for the dependencies to be solved! Can't install the required version of thunderbird until the broken packags thing is sorted! My next step would be to uninstall thunderbird, but I'm worried that this would get rid of all my contacts and downloaded mail, so how should I proceed from here?

Long version (things I have already tried):

I used Synaptic package manager to identify the broken packages, which were:

thunderbird-gnome-support
thunderbird-locale-en
xul-ext-lightning

I tried the Synaptic fix broken packages menu item, and although it reports dependencies fixed, hit the reload button and the same broken packages appear. I have searched the forums for "fix broken packages" and found the advice to try on the command line "sudo apt-get install -f" which I tried, and got this output:

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  fonts-croscore libirrlicht1.8 libjsoncpp1 libleveldb1v5 libllvm9:i386
  libluajit-5.1-2 libluajit-5.1-common linux-headers-4.15.0-101
  linux-headers-4.15.0-101-generic linux-headers-4.15.0-88
  linux-headers-4.15.0-88-generic linux-headers-4.15.0-91
  linux-headers-4.15.0-91-generic linux-headers-4.15.0-96
  linux-headers-4.15.0-96-generic linux-headers-4.15.0-99
  linux-headers-4.15.0-99-generic linux-headers-5.3.0-28
  linux-headers-5.3.0-28-generic linux-headers-5.3.0-40
  linux-headers-5.3.0-40-generic linux-headers-5.3.0-42
  linux-headers-5.3.0-42-generic linux-headers-5.3.0-45
  linux-headers-5.3.0-45-generic linux-headers-5.3.0-46
  linux-headers-5.3.0-46-generic linux-headers-5.3.0-51
  linux-headers-5.3.0-51-generic linux-image-4.15.0-101-generic
  linux-image-4.15.0-88-generic linux-image-4.15.0-91-generic
  linux-image-4.15.0-96-generic linux-image-4.15.0-99-generic
  linux-image-5.3.0-28-generic linux-image-5.3.0-40-generic
  linux-image-5.3.0-42-generic linux-image-5.3.0-45-generic
  linux-image-5.3.0-46-generic linux-image-5.3.0-51-generic
  linux-modules-4.15.0-101-generic linux-modules-4.15.0-88-generic
  linux-modules-4.15.0-91-generic linux-modules-4.15.0-96-generic
  linux-modules-4.15.0-99-generic linux-modules-5.3.0-28-generic
  linux-modules-5.3.0-40-generic linux-modules-5.3.0-42-generic
  linux-modules-5.3.0-45-generic linux-modules-5.3.0-46-generic
  linux-modules-5.3.0-51-generic linux-modules-extra-4.15.0-101-generic
  linux-modules-extra-4.15.0-88-generic linux-modules-extra-4.15.0-91-generic
  linux-modules-extra-4.15.0-96-generic linux-modules-extra-4.15.0-99-generic
  linux-modules-extra-5.3.0-28-generic linux-modules-extra-5.3.0-40-generic
  linux-modules-extra-5.3.0-42-generic linux-modules-extra-5.3.0-45-generic
  linux-modules-extra-5.3.0-46-generic linux-modules-extra-5.3.0-51-generic
  minetest-data python-pil
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  thunderbird
Suggested packages:
  ttf-lyx
The following packages will be upgraded:
  thunderbird
1 to upgrade, 0 to newly install, 0 to remove and 95 not to upgrade.
4 not fully installed or removed.
Need to get 0 B/43.5 MB of archives.
After this operation, 98.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
E: Invalid archive member header
E: Prior errors apply to /var/cache/apt/archives/thunderbird_1%3a68.10.0+build1-0ubuntu0.18.04.1_amd64.deb
debconf: apt-extracttemplates failed: No such file or directory
(Reading database ... 831589 files and directories currently installed.)
Preparing to unpack .../thunderbird_1%3a68.10.0+build1-0ubuntu0.18.04.1_amd64.deb ...
Unpacking thunderbird-locale-en-us (1:68.10.0+build1-0ubuntu0.18.04.1) over (1:68.10.0+build1-0ubuntu0.18.04.1) ...
dpkg: dependency problems prevent configuration of xul-ext-lightning:
 xul-ext-lightning depends on thunderbird (= 1:68.10.0+build1-0ubuntu0.18.04.1); however:
  Version of thunderbird on system is 1:68.8.0+build2-0ubuntu0.18.04.2.

dpkg: error processing package xul-ext-lightning (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of thunderbird-locale-en:
 thunderbird-locale-en depends on thunderbird (>= 1:68.10.0+build1-0ubuntu0.18.04.1); however:
  Version of thunderbird on system is 1:68.8.0+build2-0ubuntu0.18.04.2.

dpkg: error processing package thunderbird-locale-en (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of thunderbird-locale-en-us:
 thunderbird-locale-en-us depends on thunderbird-locale-en; however:
  Package thunderbird-locale-en is not configured yet.

dpkg: error processing package thunderbird-locale-en-us (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of thunderbird-gnome-support:
 thunderbird-gnome-support depends on thunderbird (= 1:68.10.0+build1-0ubuntu0.18.04.1); however:
  Version of thunderbird on system is 1:68.8.0+build2-0ubuntu0.18.04.2.

dpkg: error processing package thunderbird-gnome-support (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 xul-ext-lightning
 thunderbird-locale-en
 thunderbird-locale-en-us
 thunderbird-gnome-support
E: Sub-process /usr/bin/dpkg returned an error code (1)
Thanks for any help!
Gixxer
Last edited by Gixxer on Tue Jul 28, 2020 10:05 am, edited 2 times in total.
Gixxer
Level 1
Level 1
Posts: 12
Joined: Sat Aug 02, 2014 11:12 am

Re: Another "Broken Dependancies" problem

Post by Gixxer »

PS: I have also downloaded Versoin 20 of Mint Linux Cinnamon, as I can install it without losing my current /home which is on a separate drive to the main / and /boot directories. That way I can preserve all my data. This may be the best solution, what are your opinions on this?

Thanks

Gixxer
sleeper12
Level 13
Level 13
Posts: 4659
Joined: Thu May 25, 2017 3:22 pm

Re: Another "Broken Dependancies" problem

Post by sleeper12 »

You can try:

Code: Select all

 sudo dpkg --configure -a 

Code: Select all

 sudo  apt autoremove 
User avatar
blackcarajillo
Level 3
Level 3
Posts: 113
Joined: Wed Jun 22, 2016 12:33 pm

Re: Another "Broken Dependancies" problem

Post by blackcarajillo »

What did you do prior to the update? It seems strange to me to have such problems just regularly updating the system. Are you sure you were not upgrading it to another release?

Let's see how your sources list looks like:

Code: Select all

cat /etc/apt/sources.list.d/official-package-repositories.list
Gixxer
Level 1
Level 1
Posts: 12
Joined: Sat Aug 02, 2014 11:12 am

Re: Another "Broken Dependancies" problem

Post by Gixxer »

sleeper12 wrote:
Thu Jul 23, 2020 11:36 am
You can try:

Code: Select all

 sudo dpkg --configure -a 

Code: Select all

 sudo  apt autoremove 
Thanks,
Tried this and just got errors :-( This is what I got:

Code: Select all

ricky@GSXR600:~$  sudo dpkg --configure -a 
[sudo] password for ricky:        
dpkg: dependency problems prevent configuration of thunderbird-locale-en:
 thunderbird-locale-en depends on thunderbird (>= 1:68.10.0+build1-0ubuntu0.18.04.1); however:
  Version of thunderbird on system is 1:68.8.0+build2-0ubuntu0.18.04.2.

dpkg: error processing package thunderbird-locale-en (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of thunderbird-locale-en-us:
 thunderbird-locale-en-us depends on thunderbird-locale-en; however:
  Package thunderbird-locale-en is not configured yet.

dpkg: error processing package thunderbird-locale-en-us (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 thunderbird-locale-en
 thunderbird-locale-en-us
ricky@GSXR600:~$ sudo  apt autoremove 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies.
 thunderbird-locale-en : Depends: thunderbird (>= 1:68.10.0+build1-0ubuntu0.18.04.1) but 1:68.8.0+build2-0ubuntu0.18.04.2 is installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution). 

It seems I am in a Catch-22 where I can't fix the dependency problem until I have the next version of thunderbird installed, and I can't install that until the broken dependencies are fixed. At the moment, I can't update anything until I get this problem fixed! As a fairly basic skill level Linux user, this is driving me up the wall!
Thanks for trying :-)
Gixxer
Last edited by Gixxer on Tue Jul 28, 2020 10:06 am, edited 1 time in total.
Gixxer
Level 1
Level 1
Posts: 12
Joined: Sat Aug 02, 2014 11:12 am

Re: Another "Broken Dependancies" problem

Post by Gixxer »

blackcarajillo wrote:
Thu Jul 23, 2020 5:20 pm
What did you do prior to the update? It seems strange to me to have such problems just regularly updating the system. Are you sure you were not upgrading it to another release?
Seems strange to me too! I have been running Mint Linux for several years now, and have had other Linux flavours before that for at least 5 years, I have not seen anything like this before. I had a fairly large list of packages on the update manager, around 25 to 30, but during the update, the update manager failed to download several packages. Since the update included a new kernal, I rebooted my machine, and ended up with a fairly broken machine, no internet connection, reduced screen resolution, couldn't mount USB memory sticks, and doubtless other stuff I hadn't even noticed. Since all the errors stopped me from being able to correct the faults, I decided to use Timeshift to re-install the latest working version, which was 4 days old at the time. This seemed to fix everything, but I still had that large list of packages due to be updated. Next step was to deselect everything on the update list and select and update just the first thing on the list, which happened to be thunderbird. Update manager downloaded that and tried to update it, that is when I started getting errors about dependencies.

I googled the errors I was getting, and have tried various things I found on the web to fix it, including using Synaptic Package Manager's "fix Broken Packages" menu item, command line things involving apt, everything I try seems to say it can't fix the dependency error until I install the newer version of thunderbird, and I can't install the newer version of thunderbird until the broken dependencies are fixed. At the moment, I can't update anything at all, either by using the update manager, or command line methods,, until I get these broken dependencies fixed.
blackcarajillo wrote:
Thu Jul 23, 2020 5:20 pm
Let's see how your sources list looks like:

Code: Select all

cat /etc/apt/sources.list.d/official-package-repositories.list
Output of that cat command is:

deb http://packages.linuxmint.com tricia main upstream import backport #id:linuxmint_main

deb http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse

deb http://security.ubuntu.com/ubuntu/ bionic-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ bionic partner

I do hope you can help me, and thanks for your time :-)

Cheers
Gixxer
sleeper12
Level 13
Level 13
Posts: 4659
Joined: Thu May 25, 2017 3:22 pm

Re: Another "Broken Dependancies" problem

Post by sleeper12 »

Another to try:

Code: Select all

 sudo apt install -f 
User avatar
blackcarajillo
Level 3
Level 3
Posts: 113
Joined: Wed Jun 22, 2016 12:33 pm

Re: Another "Broken Dependancies" problem

Post by blackcarajillo »

You have that as the first line in your list:

Code: Select all

deb http://packages.linuxmint.com tricia main upstream import backport #id:linuxmint_main
Remove the last line: #id:linuxmint_main. To me that looks strange.
You will need to edit that line as root and then save it.

Edit: I use vim but for other users it might be easier with the text editor xed:

Code: Select all

xed admin:///etc/apt/sources.list.d/official-package-repositories.list   
Later try to update your whole system from the command line.

Code: Select all

sudo apt update
Then the upgrade:

Code: Select all

sudo apt dist-upgrade
Post the messages, errors etc and use code brackets for better readability.

And finally we just might do:

Code: Select all

sudo apt install -f
like already mentioned by my previous poster. That oftentimes helps to resolve dependency issues and later we might have a look if we have to change the mirrors for downloading the packages.
Gixxer
Level 1
Level 1
Posts: 12
Joined: Sat Aug 02, 2014 11:12 am

Re: Another "Broken Dependancies" problem

Post by Gixxer »

blackcarajillo wrote:
Fri Jul 24, 2020 3:04 pm
You have that as the first line in your list:

Code: Select all

deb http://packages.linuxmint.com tricia main upstream import backport #id:linuxmint_main
Remove the last line: #id:linuxmint_main. To me that looks strange.
You will need to edit that line as root and then save it.

Edit: I use vim but for other users it might be easier with the text editor xed:

Code: Select all

xed admin:///etc/apt/sources.list.d/official-package-repositories.list   
Thanks again for taking the time to look at my problem! I did the above, and reloaded the repositories list, with no problems or errors :-)
I then tried to fix the dependencies, firstly by using Synaptic, which reported 1 broken package, "thunderbird-locale-en" I selected the Edit/Fix Broken Packages, and the text at the bottom left of Synaptic window said "Successfully fixed dependency problems!", but on reloading the package list it still showed the same package as broken :-( I then tried the command "sudo apt install -f", one of the other suggestions, that I already know doesn't fix it, but it does show what the problem is:

Code: Select all

ricky@GSXR600:~$ sudo apt install -f
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Correcting dependencies... Done
The following packages were automatically installed and are no longer required:
  fonts-croscore libirrlicht1.8 libjsoncpp1 libleveldb1v5 libllvm9:i386
  libluajit-5.1-2 libluajit-5.1-common linux-headers-4.15.0-101
  linux-headers-4.15.0-101-generic linux-headers-4.15.0-88
  linux-headers-4.15.0-88-generic linux-headers-4.15.0-91
  linux-headers-4.15.0-91-generic linux-headers-4.15.0-96
  linux-headers-4.15.0-96-generic linux-headers-4.15.0-99
  linux-headers-4.15.0-99-generic linux-headers-5.3.0-28
  linux-headers-5.3.0-28-generic linux-headers-5.3.0-40
  linux-headers-5.3.0-40-generic linux-headers-5.3.0-42
  linux-headers-5.3.0-42-generic linux-headers-5.3.0-45
  linux-headers-5.3.0-45-generic linux-headers-5.3.0-46
  linux-headers-5.3.0-46-generic linux-headers-5.3.0-51
  linux-headers-5.3.0-51-generic linux-image-4.15.0-101-generic
  linux-image-4.15.0-88-generic linux-image-4.15.0-91-generic
  linux-image-4.15.0-96-generic linux-image-4.15.0-99-generic
  linux-image-5.3.0-28-generic linux-image-5.3.0-40-generic
  linux-image-5.3.0-42-generic linux-image-5.3.0-45-generic
  linux-image-5.3.0-46-generic linux-image-5.3.0-51-generic
  linux-modules-4.15.0-101-generic linux-modules-4.15.0-88-generic
  linux-modules-4.15.0-91-generic linux-modules-4.15.0-96-generic
  linux-modules-4.15.0-99-generic linux-modules-5.3.0-28-generic
  linux-modules-5.3.0-40-generic linux-modules-5.3.0-42-generic
  linux-modules-5.3.0-45-generic linux-modules-5.3.0-46-generic
  linux-modules-5.3.0-51-generic linux-modules-extra-4.15.0-101-generic
  linux-modules-extra-4.15.0-88-generic linux-modules-extra-4.15.0-91-generic
  linux-modules-extra-4.15.0-96-generic linux-modules-extra-4.15.0-99-generic
  linux-modules-extra-5.3.0-28-generic linux-modules-extra-5.3.0-40-generic
  linux-modules-extra-5.3.0-42-generic linux-modules-extra-5.3.0-45-generic
  linux-modules-extra-5.3.0-46-generic linux-modules-extra-5.3.0-51-generic
  minetest-data
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  thunderbird
Suggested packages:
  thunderbird-gnome-support ttf-lyx
The following packages will be upgraded:
  thunderbird
1 to upgrade, 0 to newly install, 0 to remove and 65 not to upgrade.
2 not fully installed or removed.
Need to get 0 B/43.5 MB of archives.
After this operation, 98.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] 
E: Invalid archive member header
E: Prior errors apply to /var/cache/apt/archives/thunderbird_1%3a68.10.0+build1-0ubuntu0.18.04.1_amd64.deb
debconf: apt-extracttemplates failed: No such file or directory
(Reading database ... 831596 files and directories currently installed.)
Preparing to unpack .../thunderbird_1%3a68.10.0+build1-0ubuntu0.18.04.1_amd64.deb ...
Unpacking thunderbird-locale-en-us (1:68.10.0+build1-0ubuntu0.18.04.1) over (1:68.10.0+build1-0ubuntu0.18.04.1) ...
dpkg: dependency problems prevent configuration of thunderbird-locale-en:
 thunderbird-locale-en depends on thunderbird (>= 1:68.10.0+build1-0ubuntu0.18.04.1); however:
  Version of thunderbird on system is 1:68.8.0+build2-0ubuntu0.18.04.2.

dpkg: error processing package thunderbird-locale-en (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of thunderbird-locale-en-us:
 thunderbird-locale-en-us depends on thunderbird-locale-en; however:
  Package thunderbird-locale-en is not configured yet.

dpkg: error processing package thunderbird-locale-en-us (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 thunderbird-locale-en
 thunderbird-locale-en-us
E: Sub-process /usr/bin/dpkg returned an error code (1)
As the above shows, the packages with the problems (thunderbird-locale-en, and en-us) need a later version of thunderbird, but I can't install the later version of thunderbird until the broken dependencies problem is fixed! A real Catch-22 situation. I also tried to remove the offending packages using Synaptic, but that didn't work either :-(
blackcarajillo wrote:
Fri Jul 24, 2020 3:04 pm
Later try to update your whole system from the command line.

Code: Select all

sudo apt update
Then the upgrade:

Code: Select all

sudo apt dist-upgrade
Post the messages, errors etc and use code brackets for better readability.
I worked out the code quoting thing after posting my previous message! I'm still learning my way around, both Linux and forums, LOL
blackcarajillo wrote:
Fri Jul 24, 2020 3:04 pm
And finally we just might do:

Code: Select all

sudo apt install -f
like already mentioned by my previous poster. That oftentimes helps to resolve dependency issues and later we might have a look if we have to change the mirrors for downloading the packages.
see above for result of "sudo apt install -f"

TBH, I am getting to the point where I might just do a clean install of version 20 of Mint, as I can do that without losing my /home directory, as long as I don't make a mistake with that too! LOL I've been looking at backing up my important stuff, such as .thunderbird for my mail and contacts, and .mozzilla for my firefox bookmarks, but even they are confusing, as it is not easy o see what files contain the relevant information. Anyway, I'll play about with the current installation a bit more, if I can't get anywhere, I'll install Mint 20 and keep my fingers crossed that I don't lose anyhing important from my /home directory :-)
Cheers
Gixxer
sleeper12
Level 13
Level 13
Posts: 4659
Joined: Thu May 25, 2017 3:22 pm

Re: Another "Broken Dependancies" problem

Post by sleeper12 »

Found this on a Ubuntu site, worth a try:

Code: Select all

sudo apt-get purge thunderbird
apt-get clean
apt-get install thunderbird 
Gixxer
Level 1
Level 1
Posts: 12
Joined: Sat Aug 02, 2014 11:12 am

Re: Another "Broken Dependancies" problem

Post by Gixxer »

sleeper12 wrote:
Mon Jul 27, 2020 11:52 am
Found this on a Ubuntu site, worth a try:

Code: Select all

sudo apt-get purge thunderbird
apt-get clean
apt-get install thunderbird 
Thanks, sleeper12, that did the trick! Got the new version of thunderbird installed, and that sorted the dependencies problem, great :-) Now I just have to read the thread on how to mark this one as solved :-)
Cheers
Gixxer
Gixxer
Level 1
Level 1
Posts: 12
Joined: Sat Aug 02, 2014 11:12 am

Re: Another "Broken Dependancies" problem [SOLVED]

Post by Gixxer »

Thanks to everyone who helped with this problem, now I know just a little bit more about my Linux system, and a little bit more about posting in this forum, ie, the code brackets thing :-)
Cheers
Gixxer
sleeper12
Level 13
Level 13
Posts: 4659
Joined: Thu May 25, 2017 3:22 pm

Re: Another "Broken Dependancies" problem

Post by sleeper12 »

Gixxer wrote:
Tue Jul 28, 2020 10:01 am

Thanks, sleeper12, that did the trick! Got the new version of thunderbird installed, and that sorted the dependencies problem, great :-) Now I just have to read the thread on how to mark this one as solved :-)
Cheers
Gixxer
Good to hear. :) Now do this to remove any left over junk:

Code: Select all

 sudo apt autoremove 
Gixxer
Level 1
Level 1
Posts: 12
Joined: Sat Aug 02, 2014 11:12 am

Re: Another "Broken Dependancies" problem

Post by Gixxer »

sleeper12 wrote:
Tue Jul 28, 2020 11:26 am

Good to hear. :) Now do this to remove any left over junk:

Code: Select all

 sudo apt autoremove 
Thanks, that freed up 4423Mb of disc space! I've also managed to bring my system up to date with Update manager now, so I'm a happy camper :-)
I can put off Upgrading to Mint 20 for a month or so, wait for it to settle down a bit before I upgrade.
Cheers
Gixxer
sleeper12
Level 13
Level 13
Posts: 4659
Joined: Thu May 25, 2017 3:22 pm

Re: Another "Broken Dependancies" problem

Post by sleeper12 »

Gixxer wrote:
Tue Jul 28, 2020 7:12 pm

I can put off Upgrading to Mint 20 for a month or so, wait for it to settle down a bit before I upgrade.
That's up to you, but 19.3 is supported until April 2023.
Post Reply

Return to “Newbie Questions”