linux - 如何在 Debian 中安装 Mono

标签 linux mono debian

我对 Debian 和 Mono 还很陌生。当我尝试在 Debian(GNOME 版本 3.14.1、Kali GUN/Linux2.0(sana) 32 位)中安装 Mono 时,步骤如下: http://www.mono-project.com/docs/getting-started/install/linux/#usage 并在终端中输入:

sudo apt-get update

我得到了:

# sudo apt-get update
Hit http://download.mono-project.com wheezy InRelease
Get:1 http://download.mono-project.com wheezy-apache24-compat InRelease [7,940 B]
Get:2 http://download.mono-project.com wheezy/main i386 Packages [56.5 kB]
Get:3 http://download.mono-project.com wheezy-apache24-compat/main i386 Packages [588 B]
Fetched 65.0 kB in 0s (266 kB/s)  
W: Failed to fetch http://download.mono-project.com/repo/debian/dists/wheezy/InRelease  Unable to find expected entry 'main/binary-x86/Packages' in Release file (Wrong sources.list entry or malformed file)

W: Failed to fetch http://download.mono-project.com/repo/debian/dists/wheezy-apache24-compat/InRelease  Unable to find expected entry 'main/binary-x86/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead.

我该如何解决这个问题?提前致谢!

编辑: 这个问题已经解决了,但是又出现了另一个问题。这是该问题的链接: Packages have unmet dependencies when installing mono-devel in Kali (Debian)

最佳答案

我只是用谷歌搜索了很多并且玩了一下。我在终端中输入了以下内容:

dpkg --print-foreign-architectures

它说:x86

由于 x86 不是有效的 Debian(衍生)架构,因此我通过以下方式将其删除:

dpkg --remove-architecture x86

然后apt-get update就可以工作了!

关于linux - 如何在 Debian 中安装 Mono,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36404716/

相关文章:

python - 如果目录路径作为命令行参数传递给 python,将执行哪个 python 脚本?

linux - 如何为静态文件创建原生 Debian 包?

c++ - 如何在 Windows 上使用 g++ 编译器和 Eigen 库进行编译

linux - 拦截导出

.net - DotGNU 与 Mono

c# - 相当于 mono_string_to_utf8() 没有分配和数据复制

Mono 上的 C# 用户控制?

linux - 如何在 Debian 中将 zlib 更新为自定义版本

linux - 关于在 Amazon AWS 上格式化新的 EBS 卷

linux - 程序收到信号SIGSEGV : Segmentation fault - invalid memory reference