Forum

Full Version: RPi1 upgrade error today.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
All other packages upgraded successfully, but not these two....

Code:
The following packages have unmet dependencies:
cec-utils : Depends: libcec2 (= 2.1.4-2)
libcec-dev : Depends: libcec2 (= 2.1.4-2)
Remove complained cec packages with

Terminal

sudo dpkg -r --force-all cec-utils
sudo dpkg -r --force-all libcec-dev

and then run

Terminal

sudo apt-get install -f

AFAIR was already here on the forum (or perhaps on github) Undecided
A search on here for libcec unmet came back with nothing found.

(31st Mar, 2016 07:07 AM)Nachteule Wrote: [ -> ]
Terminal

sudo apt-get install -f

That last command give me.....

Code:
xbian@lounge ~ $ sudo apt-get 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:
  autofs cifs-utils exfat-fuse exfat-utils hfsplus hfsprogs hfsutils ifplugd
  ir-keytable libaacs0 libafpclient0 libass5 libbluetooth3 libbluray1 libcurl3
  libenca0 libfribidi0 libgif4 libgif7 libhfsp0 libiw30 liblcms2-2 libmad0
  libmicrohttpd10 libmpeg2-4 libmysqlclient18 libnfs4 libnl-3-200
  libnl-genl-3-200 libpcrecpp0 libperl4-corelibs-perl libsmbclient libsqlite0
  libssh-4 libtiff4 libtinyxml2.6.2 libvorbisfile3 libwebp5 libwebpdemux1
  libwebpmux1 libxslt1.1 libyajl2 lsof mysql-common patch pv python-imaging
  python-pil python-sqlite sudo usbutils wireless-tools wpasupplicant
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  libcec xbian-package-config-xbmc xbian-package-xbmc xbian-update
WARNING: The following essential packages will be removed.
This should NOT be done unless you know exactly what you are doing!
  xbian-update libcec (due to xbian-update)
0 upgraded, 0 newly installed, 4 to remove and 0 not upgraded.
After this operation, 74.4 MB disk space will be freed.
You are about to do something potentially harmful.
To continue type in the phrase 'Yes, do as I say!'
?]

I guess that it is not safe to do that?
Hmmm, not really

Next try:

remove all cec packages ( dpkg -r --force-all ) and reinstall libcec. This should install 4 packages
Thanks for your support.

That command, should it have cec in it somewhere? Or just as you wrote?

(sorry, I am getting a little paranoid now as 2 pi units both seemed to fail simulatneously today and have spent the evening reflashing, configuring and updating/upgrading again).
Hmmm, ok:

Terminal
sudo dpkg -l | grep cec
ii cec-utils 3.0.1-1~xbian-1453441848 armhf libCEC communication Library (utility programs)
ii libcec 3.0.1-1~xbian-1453441848 armhf Meta package libCEC.
ii libcec-dev 3.0.1-1~xbian-1453441848 armhf libCEC communication Library (development files)
ii libcec3:armhf 3.0.1-1~xbian-1453441848 armhf libCEC communication Library (shared library)
ii python-libcec 3.0.1-1~xbian-1453441848 armhf Python bindings for libCEC

That gives you the installed cec packages

And then remove all packages, in my case

Terminal
sudo dpkg -r --force-all cec-utils
sudo dpkg -r --force-all libcec
sudo dpkg -r --force-all libcec-dev
sudo dpkg -r --force-all libcec3:armhf
sudo dpkg -r --force-all python-libcec

And finally

Terminal
sudo install libcec

should install all cec packages again
OK, so now I get this...
Terminal

xbian@lounge ~ $ sudo install libcec
install: missing destination file operand after ‘libcec’
Try 'install --help' for more information.
xbian@lounge ~ $ sudo apt-get install libcec
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcec is a virtual package provided by:
libcec3 3.0.1-1~xbian-1453441848 [Not candidate version]

E: Package 'libcec' has no installation candidate

Also, just tried to go back and double check and get the following.....
Terminal

xbian@lounge ~ $ sudo dpkg -l | grep cec
rc libcec3:armhf 3.0.1-1~xbian-1453441848 armhf libCEC communication Library (shared library)
rc xbian-package-cec 9.2.2.0-1-1436247112 armhf libcec 2.2.0 for XBian (rpi/master)
xbian@lounge ~ $ sudo dpkg -r --force-all libcec3:armhf
dpkg: warning: ignoring request to remove libcec3:armhf, only the config
files of which are on the system; use --purge to remove them too
xbian@lounge ~ $ sudo dpkg -r --force-all xbian-package-cec
dpkg: warning: ignoring request to remove xbian-package-cec, only the config
files of which are on the system; use --purge to remove them too
xbian@lounge ~ $

How did I get into this mess in the first place? Was it something I did? Can I avoid it in the future?
Did you do a sudo apt-get update?

please run

Terminal
sudo apt-cache search libcec
libcec2 - USB CEC Adaptor communication Library (shared library)
cec-utils - libCEC communication Library (utility programs)
libcec - Meta package libCEC.
libcec-dev - libCEC communication Library (development files)
libcec3 - libCEC communication Library (shared library)
python-libcec - Python bindings for libCEC

Seems your /etc/apt/sources.list.d/xbian.list is broken
(31st Mar, 2016 08:57 AM)Nachteule Wrote: [ -> ]Did you do a sudo apt-get update?

No, you never said to do that Wink

Terminal

xbian@lounge ~ $ sudo apt-cache search libcec
libcec-dev - USB CEC Adaptor communication Library (development files)
libcec2 - USB CEC Adaptor communication Library (shared library)
xbian@lounge ~ $
(31st Mar, 2016 08:57 AM)Nachteule Wrote: [ -> ]Seems your /etc/apt/sources.list.d/xbian.list is broken

I Have....
Terminal

deb mirror://apt.xbian.org/mirror.txt stable main rpi-jessie
deb mirror://apt.xbian.org/mirror.txt staging main rpi-jessie
##deb mirror://apt.xbian.org/mirror.txt devel main rpi-jessie

Are you normally up this late? Wink
Quote:Well that *is* weird, the file is totally blank. Nothing.

Ok, now we have the explanation for that strange behavior

Quote:I'll repopulate it and see how it goes. Are you normally up this late? Wink

Nachteule == Nightowl (you understand) Big Grin
I updated my post above. I left out the /etc/ at the start, getting late I suppose. Anyway the apt list is OK.

Anyway, I will let you fly now as I need my sleep!
Ok, good night Sleepy

Maybe a mirror is broken, you could try (for testing) http://apt.xbian.org instead of mirror://apt.xbian.org/mirror.txt in file xbian.list
OK, I modified the mirror and still the same happens....

Terminal

xbian@lounge ~ $ sudo apt-get install libcec
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libcec is a virtual package provided by:
libcec3 3.0.1-1~xbian-1453441848 [Not candidate version]

E: Package 'libcec' has no installation candidate
xbian@lounge ~ $

OK - I have this sorted now! Phew! Smile

From memory the process was.....

Change the mirror
apt-get clean
apt-get update
apt-get -f install
apt-get update
apt-get upgrade (from xbian-config)

Now all packages are back to the latest versions.

What could have caused this and can I prevent it in the future?
Quote:What could have caused this and can I prevent it in the future?

Maybe some serious error(s)/warning(s) ignored? Bad mirror? Or simply shit happens ...

Impossible to say ...
Probably the last one Wink

Thanks for the support on getting this sorted out though, I really appreciate it!

Smile
Pages: 1 2
Reference URL's