2

I was doing routine update && upgrade procedure on Ubuntu 16.04 and it wanted to upgrade some multimedia codec libraries

List of libraries to be updated

I confirmed the upgrade as seen in the picture above. Then the upgrade process returned error code (1) and couldn't finish upgrading.

Broken Pipe, /usr/bin/dpkg returns an error code

Now I am getting this unmet dependency thing when I try to do anything related to upgrade.

The following packages have unmet dependencies:
 libavcodec-extra57 : Depends: libx265-102 (>= 2.2) but it is not installed
 x265 : Depends: libx265-102 (>= 2.2) but it is not installed
        Depends: libx265-102 (< 2.3) but it is not installed
E: Unmet dependencies. Try using -f.

I am concerned. Is it possible to revert to the state before I try to upgrade?

Vemulo
  • 171

2 Answers2

4

I have solved my issue by following dpkg overwrite

Specifically I entered:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/libx265-102_2.2-1~16.04.york0_amd64.deb
Vemulo
  • 171
1

Let's try to clear up the 'partial' error first. Be very careful with these commands:

sudo rm -vf /var/lib/apt/lists/partial/*  # Remove files in 'partial'
sudo rm -vf /var/lib/apt/lists/*  # Remove package lists in 'lists'
sudo apt-get update

If you are still getting a 'status' error, try restoring a backup copy of the file:

sudo mv /var/lib/dpkg/status /var/lib/dpkg/status.0715
sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status
sudo apt-get update