我是 Linux 新手,为了做作业,我不得不安装 Maya AutoDesk,我尝试了两个小时,但还是无法正常工作。我决定稍后再安装,但我觉得我搞砸了。我尝试安装新取回几天后使用此命令。
foo@bar:~$ sudo apt install neofetch
但它带来了一个问题
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libpng12-dev : Depends: libpng12-0 (= 1.2.54-1ubuntu1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).
所以我尝试使用
sudo apt --fix-broken 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:
libappindicator1 libc++1 libc++1-9 libc++abi1-9 libdbusmenu-gtk4
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 12 not upgraded.
1 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 ... 302707 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)
我不知道该怎么办,如果能得到帮助我将不胜感激。这也是我的第一篇帖子,欢迎提供任何反馈。
我也尝试过
foo@bar:~$ sudo apt install --reinstall libpng12-0
但这种情况出现了,
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libappindicator1 libc++1 libc++1-9 libc++abi1-9 libdbusmenu-gtk4
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
libpng12-0
0 upgraded, 1 newly installed, 0 to remove and 12 not upgraded.
1 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.
(Reading database ... 302707 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-1ubuntu
1_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 loc
al 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)