plss帮我解决这些问题我正在安装sql,突然出现了错误



(原始帖子不包括实际使用的apt-get命令(

问题实际上是:
在更新mysql时,是什么导致了这种输出,我该如何修复它

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:
linux-headers-5.8.0-49-generic
linux-hwe-5.8-headers-5.8.0-49
linux-image-5.8.0-49-generic
linux-modules-5.8.0-49-generic
linux-modules-extra-5.8.0-49-generic
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libpng12-0
The following NEW packages will be installed:
libpng12-0
0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
3 not fully installed or removed.
Need to get 0 B/116 kB of archives.
After this operation, 285 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 314650 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1) ...
dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb (--unpack):
unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory
No apport report written because the error message indicates an issue on the local system
Errors were encountered while processing:
/var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

(编辑:大部分代码需求需要更多文本(

Satyam,首先,你的问题确实需要重新格式化,当在这里发布这样的问题时,会让它看起来质量不好,它的呈现方式不适合帮助其他人理解问题。

通常,您会遇到库问题,这是因为您没有/usr/lib/x86_64-linux-gnu/libpng12.so.0,这是真的,您可能只有/usr/lib/x66_64-linux-gnu/libping12.so.0.54.0

为了克服这个问题,只需创建一个名为/usr/lib/x86_64-linux-gnu/libpng12.so.0的符号链接,指向/usr/lib/x66_64-linux-gnu/libpmg12.so.0.54.0

文件夹应该包含2个文件,如以下2:

/usr/lib/x86_64-linux-gnu/libpng12.so.0 (symlink)
/usr/lib/x86_64-linux-gnu/libpng12.so.0.54.0

您的原始错误:

linux-headers-5.8.0-49-generic linux-hwe-5.8-headers-5.8.0-49 linux-image-5.8.0-49-generic linux-modules-5.8.0-49-generic linux-modules-extra-5.8.0-49-generic Use 'sudo apt autoremove' to remove them. The following additional packages will be installed: libpng12-0 The following NEW packages will be installed: libpng12-0 0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded. 3 not fully installed or removed. Need to get 0 B/116 kB of archives. After this operation, 285 kB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 314650 files and directories currently installed.) Preparing to unpack .../libpng12-0_1.2.54-1ubuntu1_amd64.deb ... Unpacking libpng12-0:amd64 (1.2.54-1ubuntu1) ... dpkg: error processing archive /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb (--unpack): unable to install new version of '/lib/x86_64-linux-gnu/libpng12.so.0': No such file or directory No apport report written because the error message indicates an issue on the local system Errors were encountered while processing: /var/cache/apt/archives/libpng12-0_1.2.54-1ubuntu1_amd64.deb E: Sub-process /usr/bin/dpkg returned an error code (1)

最新更新