Update problem

  • Platform information:
    Raspberry 2
    openhab 2.2
    Linux openHABianPi 4.9.59-v7_
    Hello if i try to update my openhabian with the command apt-get update i get the follow error
    Reading package lists… Error!
    E: Problem parsing dependency 2
    E: Error occurred while processing libperl5.24 (NewVersion2)
    E: Problem with MergeList /var/lib/dpkg/status
    E: The package lists or status file could not be parsed or opened.
    Could anybody help me
    Thx in advance

if fix the problem
sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.bak
sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status

but problem was not solved then i try this
$ sudo rm /var/lib/dpkg/status
$ sudo touch /var/lib/dpkg/status
$ sudo apt-get update
and it works

I’m having the same issue with openHAB version:2.5.0~S1464-1 (Build #1464)
but this does not work for me.

Blockquote
[13:49:25] openhabian@homehab:~$ sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.bak
[13:49:29] openhabian@homehab:~$ sudo mv /var/lib/dpkg/status-old /var/lib/dpkg/status
[13:49:39] openhabian@homehab:~$ sudo rm /var/lib/dpkg/status
[13:49:47] openhabian@homehab:~$ sudo touch /var/lib/dpkg/status
[13:49:59] openhabian@homehab:~$ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Ign:3 http://repos.azulsystems.com/debian stable InRelease
Hit:4 http://repos.azulsystems.com/debian stable Release
Hit:5 https://deb.nodesource.com/node_8.x stretch InRelease
Ign:6 https://dl.bintray.com/fg2it/deb stretch InRelease
Ign:7 https://dl.bintray.com/openhab/apt-repo2 stable InRelease
Hit:8 https://dl.bintray.com/fg2it/deb stretch Release
Hit:9 https://dl.bintray.com/openhab/apt-repo2 stable Release
Hit:11 https://repos.influxdata.com/debian stretch InRelease
Reading package lists… Error!
E: Problem parsing dependency 20
E: Error occurred while processing ubuntu-dev-tools (NewVersion2)
E: Problem with MergeList /var/lib/apt/lists/raspbian.raspberrypi.org_raspbian_dists_stretch_main_binary-armhf_Packages
E: The package lists or status file could not be parsed or opened.