Debian Jessie package problems

I upgraded my Debian Wheezy device to Debian Jessie, and upon trying to install a package (mpv in this case), I get these errors:

ghost:~# apt-get install mpv
Reading package lists... Done
Building dependency tree       
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
 libcupsfilters1 : Depends: libjpeg62-turbo (>= 1.3.1) but it is not going to be installed
 libglib2.0-dev : Depends: libglib2.0-0 (= 2.33.12+really2.32.4-5) but 2.42.1-1+deb8u3 is to be installed
                  Depends: libglib2.0-bin (= 2.33.12+really2.32.4-5) but 2.42.1-1+deb8u3 is to be installed
 libimlib2 : Depends: libjpeg62-turbo (>= 1.3.1) but it is not going to be installed
 libjasper1 : Depends: libjpeg62-turbo (>= 1.3.1) but it is not going to be installed
 libmatchbox1 : Depends: libjpeg62-turbo (>= 1:1.3.1) but it is not going to be installed
 libtiff5 : Depends: libjpeg62-turbo (>= 1.3.1) but it is not going to be installed
 libwebkitgtk-1.0-0 : Depends: libjpeg62-turbo (>= 1.3.1) but it is not going to be installed
                      Depends: libsecret-1-0 (>= 0.7) but it is not going to be installed
                      Depends: libsoup2.4-1 (>= 2.44.0) but 2.38.1-3 is to be installed
                      Depends: libwebp5 but it is not going to be installed
                      Recommends: gstreamer1.0-plugins-base (>= 1.0.3) but it is not going to be installed
                      Recommends: gstreamer1.0-plugins-good but it is not going to be installed
                      Recommends: geoclue-2.0 but it is not going to be installed
 links2 : Depends: libjpeg62-turbo (>= 1.3.1) but it is not going to be installed
 mpv : Depends: libass5 (>= 0.10.2) but it is not going to be installed
       Depends: libavcodec56 (>= 6:11~beta1) but it is not going to be installed or
                libavcodec-extra-56 (>= 6:11) but it is not going to be installed
       Depends: libavdevice55 (>= 6:11~beta1) but it is not going to be installed
       Depends: libavfilter5 (>= 6:11~beta1) but it is not going to be installed
       Depends: libavformat56 (>= 6:11~beta1) but it is not going to be installed
       Depends: libavresample2 (>= 6:11~beta1) but it is not going to be installed
       Depends: libavutil54 (>= 6:11~beta1) but it is not going to be installed
       Depends: libbs2b0 but it is not going to be installed
       Depends: libcdio-cdda1 (>= 0.83) but it is not going to be installed
       Depends: libcdio-paranoia1 (>= 0.83) but it is not going to be installed
       Depends: libguess1 but it is not going to be installed
       Depends: libjpeg62-turbo (>= 1.3.1) but it is not going to be installed
       Depends: liblua5.2-0 but it is not going to be installed
       Depends: libquvi7 (>= 0.4.0) but it is not going to be installed
       Depends: libsdl2-2.0-0 (>= 2.0.0) but it is not going to be installed
       Depends: libswscale3 (>= 6:11~beta1) but it is not going to be installed
       Depends: libva-glx1 (>= 1.0.3) but it is not going to be installed
       Depends: libvdpau1 (>= 0.2) but it is not going to be installed
       Depends: libwayland-cursor0 (>= 1.0.2) but it is not going to be installed
       Depends: libwayland-egl1-mesa (>= 10.0.2) but it is not going to be installed or
                libwayland-egl1
       Depends: libxkbcommon0 (>= 0.2.0) but it is not going to be installed
       Depends: libxss1 but it is not going to be installed
 xli : Depends: libjpeg62-turbo (>= 1:1.3.1) but it is not going to be installed
 xloadimage : Depends: libjpeg62-turbo (>= 1:1.3.1) but it is not going to be installed
W: Unable to read /etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory)
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

And, when I do a apt-get -f install I get these errors:

ghost:~# apt-get -f install
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:
  libwildmidi1 libzbar0 gstreamer0.10-x libflite1 libraptor2-0 libiec61883-0 librdf0 libgnome-keyring0 libwildmidi-config libfftw3-3 libslv2-9 libvo-aacenc0 gstreamer0.10-gconf librasqal3
  libvo-amrwbenc0 libsoundtouch0 libgme0 libspandsp2 freepats libdv4 libsoup-gnome2.4-1 libcdaudio1 libmimic0 libgnome-keyring-common libyajl2 libmhash2 libopus0 libofa0 libmms0
  python-apt-common
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libgcrypt20 libglib2.0-dev libjpeg62-turbo libsecret-1-0 libsecret-common libsoup2.4-1 libwebp5
Suggested packages:
  rng-tools libglib2.0-doc
The following packages will be REMOVED:
  libjpeg62
The following NEW packages will be installed:
  libgcrypt20 libjpeg62-turbo libsecret-1-0 libsecret-common libwebp5
The following packages will be upgraded:
  libglib2.0-dev libsoup2.4-1
2 upgraded, 5 newly installed, 1 to remove and 202 not upgraded.
427 not fully installed or removed.
Need to get 0 B/3437 kB of archives.
After this operation, 3112 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
  libsecret-common libsecret-1-0 libwebp5
Install these packages without verification [y/N]? y
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = "",
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
dpkg: error processing /var/cache/apt/archives/libglib2.0-dev_2.42.1-1+deb8u3_armel.deb (--unpack):
 parse error, in file '/var/lib/dpkg/tmp.ci/control' near line 7 package 'libglib2.0-dev':
 `Depends' field, invalid package name `python:any': character `:' not allowed (only letters, digits and characters `-+._')
configured to not write apport reports
                                      Errors were encountered while processing:
 /var/cache/apt/archives/libglib2.0-dev_2.42.1-1+deb8u3_armel.deb
W: Unable to read /etc/apt/preferences.d/ - DirectoryExists (2: No such file or directory)
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any help is greately appreciated.

TIA.

@ignatius ,

What hardware are you running ?
Is it the same h/ware as the below issues were raised against ?

You appear to have had previous similar issues ... is this current episode a continuation of those or something completely unrelated in any way ?

https://community.unix.com/t/apt-get-problems/393452

https://community.unix.com/t/gentoo-linux-emerge-sync-problems/390115

https://community.unix.com/t/debian-11-broken-dpkg/385971

Something completely different. Those were for my desktop computer, this is for an entirely different device.

Thank you.

ok, and the h/ware ....

Was the initial upgrade without issues ?
Why not do a fresh install ?

Marvell PXA270 CPU @ 312mhz (overclockable)
Marvell 802.11b/g Wifi (libertas driver)
32mb SDRAM
8mb NOR Flash Storage
MiniSD memory card slot
2.8 inch QVGA color display
5V 2A DC Adapter Input
Backlight QWERTY Keypad
Headphone Jack
Microphone and Remote control Jack (similar to Nintendo DS)
36 Pin Expansion (Hirose) Connector on back (see below for pinout)
3.7V 1230mAh Lithium Ion Battery Model ZWM2-1230LI (67mm x 60mm x 4mm)

Yes. The initial upgrade did not have any issues. I'm not doing a fresh install, because there is no way of me installing the Jessie version of Debian on this device, because there is no media to install a newer version of Debian, other than Wheezy. So, I have to start with Wheezy and upgrade to Jessie.

Ok. I solved it. I'm marking this post as 'solved'.

@ignatius and the solution is....?

2 Likes