Multiarch

把/etc/dpkg/dpkg.cfg.d/multiarch文件移除,禁用了multiarch,结果装上的wine不能用。打开Picasa出现如下错误:

Your 64-bit machine does not have the libraries to run 32-bit applications.

Please visit http://wiki.winehq.org/UsingWineOn64bit for information

regarding running 32-bit applications on 64-bit machines.

还有以下症状:

$ wine

bash: /usr/bin/wine: No such file or directory

$ file /usr/bin/wine

/usr/bin/wine: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.15, stripped

$ ldd /usr/bin/wine

    not a dynamic executable

其实/usr/bin/wine是存在的,而且也是完好的可执行文件。

在启用了multiarch的Ubuntu上,用diff验证,和上面的/usr/bin/wine是一模一样的,ldd输出如下:

$ ldd /usr/bin/wine

    linux-gate.so.1 =>  (0xf777b000)

    libwine.so.1 => /usr/bin/../lib32/libwine.so.1 (0xf7635000)

    libpthread.so.0 => /lib32/libpthread.so.0 (0xf75f7000)

    libc.so.6 => /lib32/libc.so.6 (0xf747c000)

    libdl.so.2 => /lib32/libdl.so.2 (0xf7477000)

    /lib/ld-linux.so.2 (0xf777c000)

如何解决?目前懒得折腾。