尝试安装软件包后出现警告 sudo apt-get install -y libssl-dev libffi-dev
libffi-dev is already the newest version.
libssl-dev is already the newest version.
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
klibc-utils : Depends: libklibc (= 2.0.4-2) but 2.0.4-9 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
输入后apt-get -f install
出现以下错误
dpkg-divert: error: rename involves overwriting '/usr/share/initramfs-tools/hooks/klibc^i-t' with
different file '/usr/share/initramfs-tools/hooks/klibc', not allowed <br/>
dpkg: error processing archive /var/cache/apt/archives/klibc-utils_2.0.4-9_amd64.deb (--unpack):
subprocess new pre-installation script returned error exit status 2
No diversion 'diversion of /usr/share/initramfs-tools/hooks/klibc to /usr/share/initramfs-tools/hooks/klibc^i-t by klibc-utils', none removed.
Errors were encountered while processing:
/var/cache/apt/archives/klibc-utils_2.0.4-9_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
有什么想法吗?