我需要在 Ubuntu 16.04 上运行 steam 的帮助

我需要在 Ubuntu 16.04 上运行 steam 的帮助

当我单击 Steam 时出现此错误:

Couldn't set up Steam data - please contact technical support.

我遇到了与此人相同的错误。以下是问题的链接:

Steam 无法设置 Steam 数据

然后,我尝试了上面链接中提供的最佳答案,并展示了下面遇到的问题,但首先我将向您展示我在终端中尝试运行 steam 时遇到的错误。

这是我在终端中尝试运行 steam 时遇到的错误。

johnwawryk@SteamMachine:~$ steam
Repairing installation, linking /home/johnwawryk/.steam/steam to /home/johnwawryk/.local/share/Steam 
rm: cannot remove '/home/johnwawryk/.steam/steam': Is a directory   
Setting up Steam content in /home/johnwawryk/.local/share/Steam
rm: cannot remove '/home/johnwawryk/.steam/steam': Is a directory
johnwawryk@SteamMachine:~$

以下是我之前谈到的最佳答案,位于上面提供的链接中:

然后我尝试了@Denilson Sá Maia(这是他为另一个面临同样错误的人想出的方法)的方法,但什么也没发生。以下是链接:Steam 无法设置 Steam 数据

  • mv ~/.steam/steam/* ~/.local/share/Steam/
  • rmdir ~/.steam/steam
  • ln -s ../.local/share/Steam ~/.steam/steam
  • rm -rf ~/.steam/bin

当我在终端中执行此操作时:

johnwawryk@SteamMachine:~$ mv ~/.steam/steam/* ~/.local/share/Steam/
mv: cannot move '/home/johnwawryk/.steam/steam/appcache' to '/home/johnwawryk/.local/share/Steam/appcache': Directory not empty
mv: cannot move '/home/johnwawryk/.steam/steam/userdata' to '/home/johnwawryk/.local/share/Steam/userdata': Directory not empty
johnwawryk@SteamMachine:~$ rmdir ~/.steam/steam
rmdir: failed to remove '/home/johnwawryk/.steam/steam': Directory not empty
johnwawryk@SteamMachine:~$ ln -s ../.local/share/Steam ~/.steam/steam
johnwawryk@SteamMachine:~$ rm -rf ~/.steam/bin

这是我使用过的命令的历史记录。

  • 1 纳米工具
  • 2 sudo lshw -C 网络
  • 3 纳米工具
  • 4 lsb_释放
  • 5 lsb_release-a
  • 6 $ sudo 添加 apt 存储库 ppa:ubuntu-wine/ppa
  • 7 sudo 添加 apt 存储库 ppa:ubuntu-wine/ppa
  • 8 sudo apt-get 安装 wine1.7 winetricks
  • 9 sudo 添加 apt 存储库 ppa:ubuntu-wine/ppa
  • 10 sudo 添加 apt 存储库 ppa:wine-1.7.7/ppa
  • 11 sudo 添加 apt 存储库 ppa:ubuntu-wine/ppa
  • 12 张 CD 桌面
  • 13 cd 桌面
  • 14 sudo dpkg -i wine-1.7.7.deb
  • 15 sudo 添加 apt 存储库 ppa:ubuntu-wine/ppa
  • 16 sudo apt-get 更新
  • 17 sudo apt-get 安装 wine1.7 winetricks
  • 18 sudo 添加 apt 存储库 ppa:ubuntu-wine/ppa
  • 19 sudo apt-get 安装 ca-证书
  • 20 apt-缓存策略 nvidia-current
  • 21 sudo nvidia-xconfig
  • 22 sudo apt-get 安装 steam
  • 23 运行 sudo apt-get install gdebi-core
  • 24 sudo apt-get 安装 gdebi-core
  • 25 sudo 添加 apt 存储库 ppa:graphics-drivers/ppa
  • 26 sudo apt-get 更新
  • 27 sudo apt-get 安装 nvidia-367
  • 28 蒸汽 steam://run/325610
  • 29 跑酒
  • 30 sudo 运行 wine
  • 31 chmod + x /usr/bin/winetricks
  • 32 酒艺小诀窍
  • 33 酒艺小诀窍
  • 三十四 苏
  • 35 mv winetricks /usr/bin/
  • 36 wgethttp://winetricks.org/winetricks
  • 37 葡萄酒“c:\program files\steam\steam.exe”
  • 38 mv ~/.steam/steam/* ~/.local/share/Steam/
  • 39 rmdir ~/.steam/steam
  • 40 ln -s ../.local/share/Steam ~/.steam/steam
  • 41 rm -rf ~/.steam/bin
  • 42 运行蒸汽
  • 43 $ mv ~/.steam/steam/* ~/.local/share/Steam/
  • 44 光盘 ~
  • 45 rm-rf.蒸汽
  • 46 张光盘 ~
  • 47 rm-rf.蒸汽
  • 48 张光盘 ~
  • 49 rm-rf.蒸汽
  • 50 mv ~/.steam/steam/* ~/.local/share/Steam/
  • 51 rmdir ~/.steam/steam
  • 52 ln -s ../.local/share/Steam ~/.steam/steam
  • 53 rm -rf ~/.steam/bin
  • 54 mv ~/.steam/steam/* ~/.local/share/Steam/
  • 55 rmdir ~/.steam/steam
  • 56 ln -s ../.local/share/Steam ~/.steam/steam
  • 57 rm -rf ~/.steam/bin
  • 58 历史 50
  • 59 历史 10
  • 60 历史 40
  • 61 MESA_GL_VERSION_OVERRIDE=4.3 MESA_GLSL_VERSION_OVERRIDE=430 %命令%
  • 62 mv ~/.steam/steam/* ~/.local/share/Steam/
  • 63 rmdir ~/.steam/steam
  • 64 ln -s ../.local/share/Steam ~/.steam/steam
  • 65 rm -rf ~/.steam/bin
  • 66 mv ~/.steam/steam/* ~/.local/share/Steam/
  • 68 ln -s ../.local/share/Steam ~/.steam/steam
  • 69 rm -rf ~/.steam/bin
  • 70 mv ~/.steam/steam/* ~/.local/share/Steam/
  • 71 rmdir ~/.steam/steam
  • 72 ln -s ../.local/share/Steam ~/.steam/steam
  • 73 rm -rf ~/.steam/bin
  • 74 蒸汽 蒸汽
  • 75 mv ~/.steam/steam/* ~/.local/share/Steam/
  • 76 rmdir ~/.steam/steam
  • 77 ln -s ../.local/share/Steam ~/.steam/steam
  • 78 rm -rf ~/.steam/bin
  • 79 蒸汽 蒸汽
  • 80历史10
  • 81历史50
  • 82 蒸汽 steam://run/325610
  • 83 mv ~/.steam/steam/* ~/.local/share/Steam/
  • 85 ln -s ../.local/share/Steam ~/.steam/steam
  • 86 rm -rf ~/.steam/bin
  • 87 历史 70
  • 88历史1000

答案1

请注意,我不是 Steam 用户,因此下面的所有命令均未经过测试。根据您在问题中写的内容,它们应该有效,但我不能保证。

问题的核心如下:

johnwawryk@SteamMachine:~$ mv ~/.steam/steam/* ~/.local/share/Steam/
mv: cannot move '/home/johnwawryk/.steam/steam/appcache' to '/home/johnwawryk/.local/share/Steam/appcache': Directory not empty
mv: cannot move '/home/johnwawryk/.steam/steam/userdata' to '/home/johnwawryk/.local/share/Steam/userdata': Directory not empty

您收到这两个错误是因为两个目录都存在:

  • /home/johnwawryk/.steam/steam/appcache
  • /home/johnwawryk/.local/share/Steam/appcache

目录也一样userdata

  • /home/johnwawryk/.steam/steam/userdata
  • /home/johnwawryk/.local/share/Steam/userdata

问题是,我不知道哪些目录包含有价值的数据,哪些目录可以删除。

我猜是userdata包含已保存的游戏?为了以防万一,下面是将两个目录的内容保存在tar文件中的命令:

tar -cf ~/old-steam-userdata.tar ~/.steam/steam/userdata
tar -cf ~/new-steam-userdata.tar ~/.local/share/Steam/userdata

一旦tar在您的主目录中创建了文件(您可以使用文件资源管理器检查其内容),请删除旧目录:

rm -Rf ~/.steam/steam

然后您需要再次运行此命令:

ln -s ../.local/share/Steam ~/.steam/steam

相关内容