Solution to the problem that the package is unstable or the package has not been configured in ubuntu

First of all, I don’t know if everyone has suffered from the various torments of online solutions like me.

After the complaints are over, I will first lay out the problems I encountered, everyone should be able to find some shadows

Reading package list... Done
analyzing dependency tree
of Reading status info... Done
0 packages upgraded, 0 new installed, 0 packages to uninstall, there are 0 packages have not been upgraded.
There are 2 packages that were not fully installed or uninstalled.
A 0 B/4,084 kB archive needs to be downloaded.
0 B of extra space is consumed after decompression.
dpkg: Error processing package libavcodec-ffmpeg56:amd64 (--configure):
This package is in a very unstable state;
you'd better reinstall it before configuring it
dpkg: Dependency issues make libavformat-ffmpeg56 :amd64 configuration work cannot continue:
libavformat-ffmpeg56:amd64 depends on libavcodec-ffmpeg56 (>= 7:2.7) | libavcodec-ffmpeg-extra56 (>= 7:2.7); however:
package libavcodec-ffmpeg56:amd64 has not been configured .
Package libavcodec-ffmpeg-extra56 is not installed.

No apport report was written because the error message indicated that this was an error due to the previous issue.
dpkg: Error processing package libavformat-ffmpeg56:amd64 (--configure):
Dependency problem - not yet configured
An error occurred while processing:
libavcodec-ffmpeg56:amd64
libavformat-ffmpeg56:amd64
E: Sub-process /usr /bin/dpkg returned an error code (1)

The first solution I found online was:

Replace the file (replace the info file in /var/lib/dpkg)

The command line is as follows:

sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old

sudo mkdir /var/lib/dpkg/info

sudo apt-get update

sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old

sudo rm -rf /var/lib/dpkg/info

sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info

The above is the replacement plan (the others are generally similar, if it is successful here, then congratulations, you don't need to look down)

The next step is to find various solutions, but most of them are not reliable.

So I went out to have a look and finally found a solution (I actually found that I TM didn't see this sentence)

You'd better reinstall it before configuring it! ! !

You'd better reinstall it before configuring it! ! !

You'd better reinstall it before configuring it! ! !

So the story is over! Please tap the following line lightly

sudo apt-get --reinstall install libavcodec-ffmpeg56 (note that the red one is the name of the software in question)

sudo apt-get --reinstall install libavformat-ffmpeg56

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325369514&siteId=291194637