我正在使用Vagrant和VirtualBox,并且正在运行 高山3.8 内:
$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'generic/alpine38'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'generic/alpine38' is up to date...
==> default: Setting the name of the VM: ep2018-workshop_default_1532787155941_48660
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default:
default: Vagrant insecure key detected. Vagrant will automatically replace
default: this with a newly generated keypair for better security.
default:
default: Inserting generated public key within guest...
default: Removing insecure key from the guest if it's present...
default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
在尝试安装时 chromium
,我收到有关社区存储库中屏蔽的缺失依赖项的错误消息:
$ vagrant ssh
localhost:~$ sudo apk add --update chromium
fetch https://mirror.leaseweb.com/alpine/v3.8/main/x86_64/APKINDEX.tar.gz
fetch https://mirror.leaseweb.com/alpine/v3.8/community/x86_64/APKINDEX.tar.gz
fetch http://nl.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
fetch http://nl.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
ERROR: unsatisfiable constraints:
ttf-opensans-1.10-r0:
masked in: @community
satisfies: chromium-64.0.3282.168-r0[ttf-opensans]
chromium-64.0.3282.168-r0:
masked in: @community
satisfies: world[chromium]
你知道如何解决这个问题吗?
@community https://mirror.leaseweb.com/alpine/v3.8/community
在里面/etc/apk/repositories
我的 通用/ alpine38 流浪者的盒子。