Can't update my OSMC

Hello

I encountered a problem while I was trying to upgrade my OSMC on RPi2. When I tried to upgrade from the terminal I got an error:

The following packages have unmet dependencies:
 armv7-network-osmc : depends: armv7-bluez-osmc but is not installed
E: Unresolved dependencies. Try apt-get -f install 

When t did what it suggested I got this:

(Reading database ... 39497 files and directories currently installed.)
Preparing to unpack .../armv7-bluez-osmc_5.3.9-1_armhf.deb ...
Unpacking armv7-bluez-osmc (5.3.9-1) ...
dpkg: error processing archive /var/cache/apt/archives/armv7-bluez-osmc_5.3.9-1_armhf.deb (--unpack):
 trying to overwrite '/usr/bin/hcidump', which is also in package bluez-hcidump 5.23-2+b1
dpkg-deb: error: subprocess paste was killed by signal (Prekinjen cevovod)
Processing triggers for dbus (1.8.20-0+deb8u1) ...
Errors were encountered while processing:
 /var/cache/apt/archives/armv7-bluez-osmc_5.3.9-1_armhf.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

Does anybody have any suggestions on how to resolve this problem. It would be very appreciated.
Thank you for your help in advance
Blaž

Exactly what commands are you running?

apt-get upgrade

apt-get -f install

NEVER run apt-get upgrade on OSMC. Always use apt-get dist-upgrade!

Also, you DID run apt-get update first right?

Yes, I run apt-get update.

Didn’t know about apt-get upgrade. But nothing changes if I run apt-get dist-upgrade.

Provide grab-logs -a please.

http://paste.osmc.io/haqulaxate

Start-Date: 2016-04-19  13:47:15
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.8-8, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-04-19  13:47:38

Start-Date: 2016-05-03  19:59:51
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:00:17

Start-Date: 2016-05-03  20:02:44
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:03:08

Start-Date: 2016-05-03  20:15:50
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:16:09

Start-Date: 2016-05-03  20:18:20
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:18:43

Start-Date: 2016-05-03  20:32:49
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:33:15

Start-Date: 2016-05-03  20:46:21
Commandline: apt-get -f install
Install: armv7-bluez-osmc:armhf (5.3.9-1, automatic)
Error: Sub-process /usr/bin/dpkg returned an error code (1)
End-Date: 2016-05-03  20:46:45

---------------------- APT history.log END --------------- B8sj7DO8

You have clearly not run sudo apt-get dist-upgrade today.

I did. And I run it twice right now. But I get the same error as before…

I run grab-logs -a again and there is still no entry of that I run the command.… And I run it three times…

On 28th October 2015, you appear to have installed bluez-hcidump which is conflicting with OSMC’s distribution of bluez, which is downstreamed since the March update.

sudo apt-get remove --purge bluez-hcidump

In future:

  • tell us which version of OSMC you are updating from
  • tell us which additional packages you have installed
  • allow OSMC to handle your Bluetooth connectivity.

Thank you for your quick responses. I tried your proposal and got the following:

sudo apt-get remove --purge bluez-hcidump Reading package list ... Done building dependency tree Reading state information ... Done Try running 'apt-get -f install', to correct the following: The following packages have unmet dependencies: armv7-network-osmc : Depends: armv7-bluez-osmc but will not be installed E: Unmet dependencies. Try 'apt-get -f install' without packages (or provide a solution)

ps: My terminal is not in English, so I did the best I could to translate it…

Did you try?

Yes. I got an error which I posted in my first post (second one).

Post the output of dpkg -l | bluez

Here is what I got, when I run dpkg -l | bluez:

dpkg -l | bluez -bash: bluez: command not found

OOOO, I think I got it…

I did
sudo dpkg -r bluez-hcidump
than
sudo apt-get update
and
sudo apt-get -f install
and now I’m running sudo apt-get dist-upgrade at 10%… So far so gut…
Will keep you posted :slight_smile:

Ok… That did it… I had to run sudo apt-get install --reinsall armv7-network-osmc because I got an error that it was half-installed, but now it works like charm!:slight_smile:

Thank you guys for all your help.

My typo, I meant dpkg -l | grep bluez

Anyhow good that you solved it

4 posts were merged into an existing topic: Error updating May