当我从 ubuntu 20.04 终端打开 matlab 时出现以下错误。
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open iris: /usr/lib/dri/iris_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: iris
libGL error: MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libGL error: failed to load driver: swrast
系统使用内置英特尔显卡。请帮我解决这个问题。
更新:输出apt-cache policy libgl1-mesa-dri libgl1-mesa-dri:i386
为
libgl1-mesa-dri:
Installed: 21.2.6-0ubuntu0.1~20.04.1
Candidate: 21.2.6-0ubuntu0.1~20.04.1
Version table:
*** 21.2.6-0ubuntu0.1~20.04.1 500
500 http://in.archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
100 /var/lib/dpkg/status
20.0.4-2ubuntu1 500
500 http://in.archive.ubuntu.com/ubuntu focal/main amd64 Packages
libgl1-mesa-dri:i386:
Installed: 21.2.6-0ubuntu0.1~20.04.1
Candidate: 21.2.6-0ubuntu0.1~20.04.1
Version table:
*** 21.2.6-0ubuntu0.1~20.04.1 500
500 http://in.archive.ubuntu.com/ubuntu focal-updates/main i386 Packages
100 /var/lib/dpkg/status
20.0.4-2ubuntu1 500
500 http://in.archive.ubuntu.com/ubuntu focal/main i386 Packages
的输出dpkg -S iris_dri.so
是
libgl1-mesa-dri:amd64: /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
libgl1-mesa-dri:i386: /usr/lib/i386-linux-gnu/dri/iris_dri.so
并且输出dpkg -S swrast_dri.so
是
libgl1-mesa-dri:i386: /usr/lib/i386-linux-gnu/dri/kms_swrast_dri.so
libgl1-mesa-dri:amd64: /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libgl1-mesa-dri:i386: /usr/lib/i386-linux-gnu/dri/swrast_dri.so
libgl1-mesa-dri:amd64: /usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so