不幸的是,我尝试在 ubuntu 16.04 中安装 teamviewer,但失败了。我尝试使用以下命令删除大多数需要依赖项的软件包:
sudo dpkg --remove --force-remove-reinstreq liblzma5:i386 libc6-dbg:amd64 libpam-systemd:amd64 libgcrypt20:i386 libc6-i386 libpcre3:i386 libasound2:i386 libgpg-error0:i386 libselinux1:i386 libc6-dev:amd64 libgcc1:i386
但我被困在这儿了。
sayantan@sayantan-labPC:~$ sudo apt-get -f install
[sudo] password for sayantan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
libc6 libpam-systemd libsystemd0 systemd
Suggested packages:
glibc-doc systemd-ui systemd-container
The following packages will be upgraded:
libc6 libpam-systemd libsystemd0 systemd
4 upgraded, 0 newly installed, 0 to remove and 127 not upgraded.
3 not fully installed or removed.
Need to get 0 B/6,690 kB of archives.
After this operation, 54.3 kB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Preconfiguring packages ...
(Reading database ... 321169 files and directories currently installed.)
Preparing to unpack .../libc6_2.23-0ubuntu4_amd64.deb ...
LD_LIBRARY_PATH contains the traditional /lib directory,
but not the multiarch directory /lib/x86_64-linux-gnu.
It is not safe to upgrade the C library in this situation;
please remove the /lib/directory from LD_LIBRARY_PATH and
try again.
dpkg: error processing archive /var/cache/apt/archives/libc6_2.23-0ubuntu4_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.23-0ubuntu4_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
sayantan@sayantan-labPC:~$
我检查了当前的 LD_CONFIG_PATH,但仍然没有帮助:
sayantan@sayantan-labPC:~$ echo $LD_LIBRARY_PATH
/lib/x86_64-linux-gnu/
sayantan@sayantan-labPC:~$
我甚至尝试强制覆盖该包,但仍然导致相同的结果。
sayantan@sayantan-labPC:~$ sudo dpkg -i --force-overwrite /var/cache/apt/archives/libc6_2.23-0ubuntu4_amd64.deb
(Reading database ... 321169 files and directories currently installed.)
Preparing to unpack .../libc6_2.23-0ubuntu4_amd64.deb ...
LD_LIBRARY_PATH contains the traditional /lib directory,
but not the multiarch directory /lib/x86_64-linux-gnu.
It is not safe to upgrade the C library in this situation;
please remove the /lib/directory from LD_LIBRARY_PATH and
try again.
dpkg: error processing archive /var/cache/apt/archives/libc6_2.23-0ubuntu4_amd64.deb (--install):
subprocess new pre-installation script returned error exit status 1
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.23-0ubuntu4_amd64.deb
sayantan@sayantan-labPC:~$
请帮忙解决问题。