- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我的Vagrantfile
如下:
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Set Vagrant Minimum Version
Vagrant.configure("2") do |config|
config.vm.box = "bento/ubuntu-18.04"
config.vm.network :forwarded_port, guest: 80, host: 8000
config.vm.network :private_network, type: "dhcp"
config.vm.synced_folder ".", "/vagrant"
# Determine the available cores in host system.
cpu_count = 1
if RUBY_PLATFORM =~ /linux/
cpu_count = `nproc`.to_i
elsif RUBY_PLATFORM =~ /darwin/
cpu_count = `sysctl -n hw.ncpu`.to_i
end
config.vm.provider "vmware_fusion" do |v|
v.vmx['memsize'] = 4096
v.vmx['numvcpus'] = (cpu_count / 2).ceil
end
end
我使用的是bento/ubuntu-18.04盒子,我可以成功地执行vagrant up
,但是如果我运行以下命令:
sudo apt-get update
sudo apt-get install python3-dev
我收到一条相当长的错误消息,如下所示:
Checking init scripts...
dpkg: error processing package libssl1.1:amd64 (--configure):
installed libssl1.1:amd64 package post-installation script subprocess returned error exit status 10
Setting up libexpat1-dev:amd64 (2.2.5-3) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Setting up python3-lib2to3 (3.6.8-1~18.04) ...
Setting up python3-distutils (3.6.8-1~18.04) ...
dpkg: dependency problems prevent configuration of libssl-dev:amd64:
libssl-dev:amd64 depends on libssl1.1 (= 1.1.1-1ubuntu2.1~18.04.2); however:
Package libssl1.1:amd64 is not configured yet.
dpkg: error processing package libssl-dev:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpython3.6-minimal:amd64:
libpython3.6-minimal:amd64 depends on libssl1.1 (>= 1.1.1); however:
Package libssl1.1:amd64 is not configured yet.
dpkg: error processing package libpython3.6-minimal:amd64 (--configure):
dependency problems - leaving unconfigured
Setting up dh-python (3.20180325ubuntu2) ...
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
dpkg: dependency problems prevent configuration of libpython3.6-stdlib:amd64:
libpython3.6-stdlib:amd64 depends on libpython3.6-minimal (= 3.6.8-1~18.04.1); however:
Package libpython3.6-minimal:amd64 is not configured yet.
dpkg: error processing package libpython3.6-stdlib:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.6:
python3.6 depends on libpython3.6-stdlib (= 3.6.8-1~18.04.1); however:
Package libpython3.6-stdlib:amd64 is not configured yet.
dpkg: error processing package python3.6 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.6-minimal:
python3.6-minimal depends on libpython3.6-minimal (= 3.6.8-1~18.04.1); however:
Package libpython3.6-minimal:amd64 is not configured yet.
dpkg: error processing package python3.6-minimal (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
No apport report written because MaxReports is reached already
of libpython3.6-dev:amd64:
libpython3.6-dev:amd64 depends on libpython3.6-stdlib (= 3.6.8-1~18.04.1); however:
Package libpython3.6-stdlib:amd64 is not configured yet.
dpkg: error processing package libpython3.6-dev:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3.6-dev:
python3.6-dev depends on python3.6 (= 3.6.8-1~18.04.1); however:
Package python3.6 is not configured yet.
python3.6-dev depends on libpython3.6-dev (= 3.6.8-1~18.04.1); however:
Package libpython3.6-dev:amd64 is not configured yet.
dpkg: error processing package python3.6-dev (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpython3.6:amd64:
libpython3.6:amd64 depends on libpython3.6-stdlib (= 3.6.8-1~18.04.1); however:
Package libpython3.6-stdlib:amd64 is not configured yet.
dpkg: error processing package libpython3.6:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libpython3-dev:amd64:
libpython3-dev:amd64 depends on libpython3.6-dev (>= 3.6.7-1~); however:
Package libpython3.6-dev:amd64 is not configured yet.
dpkg: error processing package libpython3-dev:amd64 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-dev:
python3-dev depends on libpython3-dev (= 3.6.7-1~18.04); however:
Package libpython3-dev:amd64 is not configured yet.
python3-dev depends on python3.6-dev (>= 3.6.7-1~); however:
Package python3.6-dev is not configured yet.
dpkg: error processing package python3-dev (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.27-3ubuntu1) ...
Errors were encountered while processing:
libssl1.1:amd64
libssl-dev:amd64
libpython3.6-minimal:amd64
libpython3.6-stdlib:amd64
python3.6
python3.6-minimal
libpython3.6-dev:amd64
python3.6-dev
libpython3.6:amd64
libpython3-dev:amd64
python3-dev
E: Sub-process /usr/bin/dpkg returned an error code (1)
我已经确认这种情况也发生在其他机器上,也使用相同的 Vagrant 盒子,但使用 Virtualbox 设置。它也没有成功安装 python-dev 环境。我在尝试安装 Postgres 时也得到了类似的结果,并且错误消息几乎相同。
Vagrant 版本是:2.2.3
VMWare 融合版本:8.1.1
操作系统:macOS 莫哈维 10.14.4
最佳答案
我也遇到了同样的问题。这一切似乎都是由 libssl1.1
包的问题引起的。升级系统似乎可以解决问题:
sudo apt-get update
sudo apt-get upgrade
这可能需要一段时间。在某个时候,我被问到是否接受 Ubuntu 附带的新版本配置文件,我回答是(Y
)。
Configuration file '/etc/update-manager/release-upgrades'
==> 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.
*** release-upgrades (Y/I/N/O/D/Z) [default=N] ?
此后,apt-get install
开始工作。
关于python-3.x - 在 Vagrant 盒子中全新安装 Ubuntu 18.04 时安装 python3-dev 时出现问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56622918/
这个问题在这里已经有了答案: CSS3 Flexbox: display: box vs. flexbox vs. flex (3 个答案) 关闭 1 年前。 今天我们中的许多人都知道 displa
$('.finalLink').html(" Click to Follow"); 我正在尝试创建一个以 super 框模式打开的链接。尝试了灯箱,结果相同。这些链接有效,但只是转到该网站。如果我静态
我使用了 RayHandler.useDiffuseLight(true) ,现在无论我设置什么环境光值,屏幕上未照亮的部分都是黑色的。这是正常的吗?我见过其他用 libgdx 制作的应用程序,它同时
我需要帮助解决一个简单的问题。我的任务即将结束,我们要制作不同的艺术人物。我制作了一个“正方形内的正方形”盒子,需要生成该盒子的 4 行和 4 列。 我认为最好的解决方案是多一些 for 循环,但不能
我怎样才能实现this effect使用 CSS 和/或 jQuery? 我会发布到目前为止我编写的代码,但它没有用...... 最佳答案 使用jQuery Masonry或Isotope为了达成这个
我写了下面的代码: for row in range(len(listOfLists)): print('+' + '-+'*len(listOfLists)) print('|',
我想知道如何在 CSS3 中制作成 Angular 盒子。喜欢这个网站: http://themeluxe.com/themes/glissando/ (白人) 我怎样才能使边框看起来更好、更平滑。
我正在尝试实现具有三个垂直部分的简单布局: 页面顶部的小标题。 主要内容,必要时展开,以便页脚保留在页面底部。 页面底部的页脚。 主要内容部分应进一步分为两部分:一个带有输入框和按钮的非常小的表单,以
我正在尝试构建如下图所示的网格 IMG 链接:http://postimg.org/image/qo3b4nof1/ 但我得到的 DIV E 几乎在 D-DIV 旁边 这是我的代码
如何修改fancybox盒子的定位?我希望它被定位,以便它漂浮在我的容器 div 中... 感谢您的宝贵时间和帮助! 最佳答案 jquery.fancybox-1.2.6 的第 255 行有这段代码
这个问题在这里已经有了答案: Inset border-radius with CSS3 (8 个答案) 关闭 9 年前。 border-radius 属性可以使盒子的 Angular 变圆。但是如
我创建了一个包装器元素,其中包含 2 个彼此相邻的行内 block 框(图片中为浅绿色和黄色)。然后我创建了另外两个 div,它们都嵌套在其中一个内联 block 中以使内容居中。它可以工作,但由于某
我在使用 WordPress 时遇到问题,在盒子中嵌套盒子。在 WordPress 之外,这工作正常。我确定只有一两个参数有误。 外框为dp23,内框为dp22由于某种原因,内框 (dp22) 之间存
我目前尝试在容器内排列盒子的结果是这样的输出。 但我想要实现的是, 用最大数量的框填充每一行,但每个框都有固定的填充和边距。我相信我已经做到了。 我需要每行中的单个框来覆盖剩余空间,间隙仅为 1 像素
我在下面有多个 flexbox 的代码。当页面展开时,我如何将它们垂直居中放置在页面中?我尝试在我的 flex-container 中使用 justify-content: center; 但当我使用
我有这样的布局: 我
我是编程新手,我注意到有人提到了 flex box。在阅读了很多相关内容之后,它似乎对我有用。唯一的问题是我在安装它时遇到了很多麻烦,即使在搜索了大约一个小时的帮助之后也是如此。我从 github 下
Vagrantfile有问题: # -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| config
我正在尝试下载一个 Vagrant 的盒子,但他们的服务器此时非常缓慢。他们有公共(public)镜子吗?我想下载precision64.box 文件。 谢谢 最佳答案 尝试更可靠的: Vagrant
在一个父容器内,三个 div 彼此重叠。顶部 div 是固定高度。底部 div 的内容占用了未知数量的垂直空间,但需要显示其中的所有内容。顶部 div 应填充剩余的垂直空间。每一个 // 100%
我是一名优秀的程序员,十分优秀!