似乎在 Ubuntu 18.04 中,默认提供的 g++(版本 7.3.0)默认以 C++11 兼容模式运行。我的旧代码中出现了一些与 C++11 不兼容的错误。我安装了 g++-6(版本 6.4.0)并且程序编译正常。是否可以在 g++-7 中禁用 C++11 模式?
主页
/
user-725388
Soo's questions
Soo
Asked:
2018-06-28 00:59:30 +0800 CST
我正在尝试在 Ubuntu 18.04 LTS 中从此处安装 StarUML 2.8。该软件包需要“libcurl3”。当我安装它时,它会删除包“cmake”和“libcurl4”。如何在不删除 cmake 的情况下安装 StarUML (2.8)?
Soo
Asked:
2018-05-23 01:26:55 +0800 CST
我想为 Ubuntu 18.04 和 16.04 创建一个本地存储库。我只对下载 64 位软件包感兴趣。我正在使用“apt-mirror”将软件包下载到硬盘上。
我在“mirror.lst”中使用以下内容
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-security main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-updates main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-proposed main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu xenial-backports main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-security main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-updates main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-proposed main restricted universe multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu bionic-backports main restricted universe multiverse
使用“sudo apt-mirror”时出现以下错误
Downloading 380 index files using 40 threads...
Begin time: Tue May 22 12:09:11 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Tue May 22 12:09:26 2018
Processing translation indexes: [TTTTTTTTTT]
Downloading 453 translation files using 40 threads...
Begin time: Tue May 22 12:09:26 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Tue May 22 12:10:03 2018
Processing DEP-11 indexes: [DDDDDDDDDD]
Downloading 144 dep11 files using 40 threads...
Begin time: Tue May 22 12:10:03 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]... [0]...
End time: Tue May 22 12:13:42 2018
Processing indexes: [P
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
PPPPP
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
PPPP
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
gzip: stdin: not in gzip format
]
26.9 GiB will be downloaded into archive.
Downloading 5640 archive files using 40 threads...
Begin time: Tue May 22 12:13:43 2018
[40]... [39]... [38]... [37]... [36]... [35]... [34]... [33]... [32]... [31]... [30]... [29]... [28]... [27]... [26]... [25]... [24]... [23]... [22]... [21]... [20]... [19]... [18]... [17]... [16]... [15]... [14]... [13]... [12]... [11]... [10]... [9]... [8]... [7]... [6]... [5]... [4]... [3]... [2]... [1]...
[0]...
End time: Tue May 22 12:58:01 2018
我反复尝试了很多次,每次都得到同样的错误。
下载也很慢(尽管我的互联网连接很快)。是否有任何选项可以从多个镜像同时下载软件包?也请让我知道克服错误的任何解决方案!