我在Ubuntu 16.04LTS上,我试图通过Flatpak软件包安装MonoDevelop。
我差不多完成了,唯一缺少的就是运行时。当我运行以下命令时出现错误:
flatpak run com.xamarin.MonoDevelop
error: runtime/org.freedesktop.Platform/x86_64/1.4 not installed
然后我尝试安装它:
flatpak install gnome org.freedesktop.Platform//1.4
Installing: org.freedesktop.Platform/x86_64/1.4 from gnome
Receiving delta parts: 0/9 6.1 kB/s 98.3 kB/120.1 MB 5 hours 25 minutes
Receiving delta parts: 0/9 25.1 kB/s 426.0 kB/120.1 MB 1 hours 19 minut
Receiving delta parts: 0/9 34.9 kB/s 627.5 kB/120.1 MB 57 minutes 7 sec
Receiving delta parts: 0/9 34.8 kB/s 660.3 kB/120.1 MB 57 minutes 17 se
Receiving delta parts: 0/9 48.6 kB/s 971.6 kB/120.1 MB 40 minutes 52 se
Receiving delta parts: 0/9 84.5 kB/s 1.8 MB/120.1 MB 23 minutes 20 seconds remaining
error: While pulling runtime/org.freedesktop.Platform/x86_64/1.4 from remote gnome:
Error resolving 'sdk.gnome.org': Temporary failure in name resolution
有时它没有显示"接收增量部分",它直接导致错误。
这个运行时的存储库可能已损坏,或服务器!有人能指出我正确的方向吗?
答案 0 :(得分:0)
问题出现在文件/etc/resolv.conf中,其名称服务器为127.0.0.1,我将其更改为8.8.8.8,因此我可以继续运行时安装。
您也可以尝试运行:sudo service network-manager restart
我认为这会将127.0.0.1重置为127.0.1.1,否则会按照我说的8.8.8.8手动更改它并且它会工作。