- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在使用 Ubuntu。我无法编译虚拟机。如果我直接转到 gitian-builder 并在终端中键入:sudo bin/make-base-vm -a i386
。它编译了大约 3 分钟,然后因以下错误而崩溃:
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Sub-process /usr/bin/dpkg returned an error code (1)
终端:
root@user-MS-7366:/home/user# cd git*
root@user-MS-7366:/home/user/gitian-builder# sudo bin/make-base-vm --arch amd64
2017-01-09 15:53:37,004 INFO : logging to file: /tmp/tmpXaV7Vf
2017-01-09 15:53:37,173 INFO : Calling hook: preflight_check
2017-01-09 15:53:37,200 INFO : Calling hook: set_defaults
2017-01-09 15:53:37,200 INFO : Calling hook: bootstrap
2017-01-09 15:58:05,544 INFO : Calling hook: configure_os
Extracting templates from packages: 100%
2017-01-09 16:04:46,669 INFO : W: --force-yes is deprecated, use one of the options starting with --allow instead.
2017-01-09 16:04:50,371 INFO :
2017-01-09 16:04:50,371 INFO : Current default time zone: 'Etc/UTC'
2017-01-09 16:04:50,374 INFO : Local time is now: Mon Jan 9 15:04:50 UTC 2017.
2017-01-09 16:04:50,374 INFO : Universal Time is now: Mon Jan 9 15:04:50 UTC 2017.
2017-01-09 16:04:50,374 INFO :
2017-01-09 16:04:52,946 INFO : Generating locales (this might take a while)...
2017-01-09 16:04:54,025 INFO : en_AG.UTF-8... done
2017-01-09 16:04:55,088 INFO : en_AU.UTF-8... done
2017-01-09 16:04:56,159 INFO : en_BW.UTF-8... done
2017-01-09 16:04:57,231 INFO : en_CA.UTF-8... done
2017-01-09 16:04:58,297 INFO : en_DK.UTF-8... done
2017-01-09 16:04:59,359 INFO : en_GB.UTF-8... done
2017-01-09 16:05:00,424 INFO : en_HK.UTF-8... done
2017-01-09 16:05:01,485 INFO : en_IE.UTF-8... done
2017-01-09 16:05:02,547 INFO : en_IN.UTF-8... done
2017-01-09 16:05:03,677 INFO : en_NG.UTF-8... done
2017-01-09 16:05:04,740 INFO : en_NZ.UTF-8... done
2017-01-09 16:05:05,812 INFO : en_PH.UTF-8... done
2017-01-09 16:05:06,881 INFO : en_SG.UTF-8... done
2017-01-09 16:05:07,954 INFO : en_US.UTF-8... done
2017-01-09 16:05:09,021 INFO : en_ZA.UTF-8... done
2017-01-09 16:05:10,086 INFO : en_ZM.UTF-8... done
2017-01-09 16:05:11,145 INFO : en_ZW.UTF-8... done
2017-01-09 16:05:11,146 INFO : Generation complete.
Extracting templates from packages: 100%
2017-01-09 16:07:45,694 INFO : W: --force-yes is deprecated, use one of the options starting with --allow instead.
2017-01-09 16:07:45,695 INFO : E: Sub-process /usr/bin/dpkg returned an error code (1)
2017-01-09 16:07:45,696 INFO : Cleaning up
2017-01-09 16:07:46,846 ERROR : Process (['chroot', '/tmp/tmpbRsGQM', 'apt-get', '-y', '--force-yes', 'dist-upgrade']) returned 100. stdout: Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
apt apt-utils base-files bash bsdutils console-setup console-setup-linux
dh-python distro-info-data dpkg gnupg gpgv grep ifupdown init
init-system-helpers initramfs-tools initramfs-tools-bin initramfs-tools-core
isc-dhcp-client isc-dhcp-common kbd keyboard-configuration klibc-utils less
libapparmor1 libapt-inst2.0 libapt-pkg5.0 libblkid1 libc-bin
libdns-export162 libexpat1 libfdisk1 libgcrypt20 libgnutls-openssl27
libgnutls30 libidn11 libisc-export160 libklibc libmount1 libp11-kit0
libprocps4 libpython3.5-minimal libpython3.5-stdlib libsmartcols1
libssl1.0.0 libsystemd0 libtasn1-6 libudev1 libuuid1 locales lsb-base mount
multiarch-support procps python3.5 python3.5-minimal sudo systemd
systemd-sysv tar tzdata udev util-linux vim-common vim-tiny
66 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 27.7 MB of archives.
After this operation, 233 kB of additional disk space will be used.
[installing packages]
Configuration file '/etc/sudoers'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : start a shell to examine the situation
The default action is to keep your current version.
*** sudoers (Y/I/N/O/D/Z) [default=N] ? dpkg: error processing package sudo (--configure):
end of file on stdin at conffile prompt
[... // installing]
update-initramfs: Generating /boot/initrd.img-4.4.0-57-generic
Errors were encountered while processing:
sudo
Extracting templates from packages: 100%
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@user-MS-7366:/home/user/gitian-builder#
我错过了什么?
谢谢。
最佳答案
我在新的 Ubuntu 16.04 LTS 上遇到了同样的问题。我从另一个帖子找到的解决方案是:
1.: 将单词'dist-upgrade'更改为'update':/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.py
2.: 删除/usr/lib/python2.7/dist-packages/VMBuilder/plugins/ubuntu/dapper.pyc
该解决方案解决了问题,make-base-vm 现在可以顺利编译。
引用:“令人恼火的是,像这样的问题的“解决方案”是编辑已安装的软件包,但事实就是如此。”
在这里找到: https://askubuntu.com/questions/852814/dpkg-error-processing-package-sudo-configure
关于Linux gitian-builder 和 "dpkg: error processing package sudo",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41551217/
我正在开发一个应用程序,我成功地消除了除一个错误之外的所有错误: no suitable constructor found for builder 更改为“意图” https://file.io/O
我可以在 C++Builder 6 中成功编译以下代码片段,但我无法在 RAD Studio Seattle 中编译它: unsigned long x = 50; String s = In
我有一个项目(新开始),其中 C++ Builder 没有在任何断点处停止。我已确保我处于 Debug模式(未发布),链接器->完整调试信息 = True,C++ 编译器->调试配置,C++ 编译器-
我们想在正在开发的 C++ builder XE 应用程序中绘制大型控制流程图。 这些图表将以编程方式生成并以交互方式显示给用户(用户可以滚动大流程图、选择节点等)。节点必须能够显示自定义组件(如 T
我有以下问题 午餐时 FlashBuilder.exe (BURRITO):它崩溃并创建一个错误日志文件,例如: hs_err_pid7084.log 及以下 但是当我咀嚼 FlashBuilderC
我有一个大型 Flash Builder 项目,它是更大 (.net) 解决方案的一部分。对于整个项目,我通常有一个前进的开发分支,以及一个或多个错误修复分支。考虑到 Flash Builder 不想
乘数(自动布局中约束的属性)有什么作用? 最佳答案 约束中两个值之间的关系由以下公式确定: b = am + c 其中 a 和 b 是要关联的两个值,m 是乘数,c code> 是常量。 例如,如果
我们的开发团队使用 Borland C++ Builder 6 和 CodeGear C++ Builder 2007(以及 Visual Studio)。我听到很多评论说 Builder 2007
我想阐明我对构建器模式的使用,特别是构建器类型是如何创建的。在示例中,它只是假定构建器的类型并创建它。但是,我在“ChartBuilderFactory”类中创建了一个 CreateBuilder 方
首先,我对 Java 比较陌生,所以我问的可能是微不足道的,但我在这里或其他地方找不到答案。 为简单起见,假设我有以下类层次结构: class Shape { protected Shape(
我试图在另一个 AlertDialog 中打开一个 AlertDialog,但它不起作用,知道为什么它不起作用吗? String items[] = {"Details","Edit","Delete
我有一个包含 Form1 和 Form2 的程序。如何单击按钮从 form1 打开 form2? 最佳答案 更多信息 在你的 Project.cpp 中有这个:Application->CreateF
每当我使用 C++ Builder(XE4 版,但以前的版本也这样做)在 Release模式下构建 Win32 EXE 时,它总是创建一个导出目录并为我的项目中的每个单元导出一个 Initialize
我正在尝试在我的试用版 flashbuilder 上启用设计模式,但找不到任何选项, 我已经查看了 Windows 菜单,但没有启用设计模式, 和首选项,但首选项对话框中没有 Flex 来启用其设计模
我目前正在将一个大型 RAD Studio 2010 项目迁移到 XE4。作为其中的一部分,我正在重新创建许多项目文件。我想借此机会确保我们对预编译头使用最好的机制,因为似乎有几种方法可以做到这一点。
我观看了“Interface Builder 中的新增功能” session 视频并尝试复制显示的代码,但不幸的是,当我将 View 分配给具有 @IBDesignable 的自定义类时,出现 2 个
这个问题在这里已经有了答案: Why is NotificationCompat needed? (3 个答案) 关闭 5 年前。 我看到的几乎所有 Android 通知示例代码似乎都使用了 Not
我正在使用 fcm 从我的 Android 应用程序发送通知,并且我已经实现了它要求我提供的所有库。 val topic = "highScores" // See docum
我正在尝试在Flash Builder 4.6中进行项目范围内的查找和替换,但是对我而言,如何实现这一点并不明显。 我试过Edit-> Find/Replace然后全部替换,但它仅替换当前打开的文件中
帮助我在 XCode4 中取消 fubar 界面构建器。 我在 interface-builder 中创建了一个按钮,并在 View 的代码中为它定义了一个 IBAction 方法。它运行良好。然后我
我是一名优秀的程序员,十分优秀!