自最新更新以來,steam 在沙盒中啟動了一些 Linux 遊戲。如果你的lxc 容器中有steam,那麼它不會在你的主作業系統中安裝庫,或者你想將它與你的工作文件隔離,dota2 就會崩潰,因為steam 想要在你的lxc 容器中啟動一個容器,但失敗了。這是一個非常具體的用例,但也許其他人也遇到同樣的問題。
答案1
您可以輸入此程式碼或將其複製到 bash 腳本中:
export STEAM_RUNTIME=0
export LD_LIBRARY_PATH=~/.local/share/Steam/ubuntu12_64/steam-runtime-heavy/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=~/.local/share/Steam/ubuntu12_32/steam-runtime.old/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
#add this line on radeon cards
#export LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/:$LD_LIBRARY_PATH
~/.local/share/Steam/steamapps/common/dota\ 2\ beta/game/dota.sh -vulkan