小编Mil*_*iez的帖子

在 Ubuntu Docker 镜像中安装 hexdump

我正在使用ubuntu:16.04图像,但显然它没有hexdump包(因为我在图像中做的其他一些事情因此而失败)。所以,我试图apt-get install hexdump但得到一个错误E: Unable to locate package hexdump

当我在网上搜索信息时,这个包似乎应该默认安装在 Ubuntu 上,但可能在 Docker 镜像中它被删除了。因此我无法真正找到如何安装它的来源。

apt docker 16.04

8
推荐指数
2
解决办法
1万
查看次数

设置 Homestead 时 Vagrant 不会运行

我完成了本手册中有关如何设置 Homestead 的所有步骤 当我尝试运行 vagrant box 时,我遇到了问题:

mysystem@me:~/Google Drive/Homestead$ vagrant up
Vagrant failed to initialize at a very early stage:

The home directory you specified is not accessible. The home
directory that Vagrant uses must be both readable and writable.

You specified: /home/mysystem/.vagrant.d
Run Code Online (Sandbox Code Playgroud)

我尝试将 Homestead 文件夹放在系统的不同位置。Google Drive 文件夹是可读/可写的 - 我在没有 sudo 命令的情况下在那里创建文件/文件夹。也许我不是想解决正确的问题,我不知道。这是我的 Homestead.yaml 文件:

authorize: ~/Google\ Drive/Homestead/.ssh/id_rsa.pub

keys:
    - ~/Google\ Drive/Homestead/.ssh/id_rsa

folders:
    - map: ~/Google\ Drive/Homestead/workspace
      to: /home/vagrant/Code

sites:
    - map: test.app
      to: /home/vagrant/Code/test/public

variables:
    - key: …
Run Code Online (Sandbox Code Playgroud)

ssh vagrant

3
推荐指数
1
解决办法
7380
查看次数

标签 统计

16.04 ×1

apt ×1

docker ×1

ssh ×1

vagrant ×1