嗨,我正在尝试使用mpi程序。要编译它,我需要mpi编译器,但是在安装它时出现错误。
sudo apt-get install openmpi-bin openmpi-common libopenmpi-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
ibverbs-providers libfabric1 libhwloc-dev libhwloc-plugins libhwloc5
libibverbs-dev libibverbs1 libnl-route-3-200 libnuma-dev libnuma1
libopenmpi3 libpmix2 libpsm-infinipath1 libpsm2-2 librdmacm1
ocl-icd-libopencl1
Suggested packages:
libhwloc-contrib-plugins openmpi-doc opencl-icd
Recommended packages:
libcoarrays-openmpi-dev
The following NEW packages will be installed:
ibverbs-providers libfabric1 libhwloc-dev libhwloc-plugins libhwloc5
libibverbs-dev libibverbs1 libnl-route-3-200 libnuma-dev libopenmpi-dev
libopenmpi3 libpmix2 libpsm-infinipath1 libpsm2-2 librdmacm1
ocl-icd-libopencl1 openmpi-bin openmpi-common
The following packages will be upgraded:
libnuma1
1 upgraded, 18 newly installed, 0 to remove and 252 not upgraded.
Need to get 5 271 kB/5 624 kB of archives.
After this operation, 22,4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Err:1 http://archive.ubuntu.com/ubuntu cosmic-updates/main amd64 libnuma1 amd64 2.0.11-2.2ubuntu0.1
404 Not Found [IP: 91.189.88.152 80]
...
感谢您的合作。
答案 0 :(得分:0)
每https://wiki.ubuntu.com/CosmicCuttlefish/ReleaseNotes
Ubuntu 18.10的支持期限为9个月,直到2019年7月。如果需要, 长期支持,建议您改用Ubuntu 18.04 LTS。
您最好的选择是升级到较新的发行版(或降级为18.04)。 您也许还可以找到一些镜像,并使用它们来安装缺少的软件包。
答案 1 :(得分:0)
您需要更新您的sources.list,并使用其他镜像。
与described in this post一样,您应在您的 /etc/apt/sources.list 中用using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class MyClass
{
public int[] myNumber;
public MyClass ShallowCopy()
{
return (MyClass)this.MemberwiseClone();
}
}
public class Test : MonoBehaviour
{
Dictionary<string, MyClass> myDictionary1 = new Dictionary<string, MyClass>();
Dictionary<string, MyClass> myDictionary2 = new Dictionary<string, MyClass>();
void Start()
{
myDictionary1.Add("a", new MyClass() { myNumber = new int[] { 1, 1 } });
myDictionary1.Add("b", new MyClass() { myNumber = new int[] { 2, 2 } });
myDictionary2["b"] = myDictionary1["a"].ShallowCopy();
myDictionary2["b"].myNumber[0] = 3;
Debug.Log(myDictionary1["a"].myNumber[0]); //output 3, I'd want it to still be 1
}
}
用public MyClass DeepCopy()
{
MyClass other = (MyClass)this.MemberwiseClone();
other.myNumber = ?????????????????????? //int[] deep copy
return other;
}
替换所有URL。
然后,您运行http://archive.ubuntu.com/…
,然后可以重新安装软件包。
请注意,您确实应该考虑对其进行升级,但仍然不会太麻烦。