vagrant reload 的时候 电脑卡住死机了,然后我重启了以后就没办法启动了,于是重装这个 vagrant

使用  sudo apt-get remove vagrant  然后如果清除不干净就  sudo apt-get autoremove  执行一下

然后重新安装  sudo apt-get install vagrant

然后是virtualbox的清理

sudo apt-get remove virtualbox

sudo apt-get autoremove

之后看这篇文章

https://phoenixnap.com/kb/install-virtualbox-on-ubuntu

ubuntu 安装 virtualbox 我使用的就是

sudo apt-get update
sudo apt-get install virtualbox–6.0

之后我重新启动,遇到一个提示

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed! DEBIAN_FRONTEND=noninteractive apt-get install -y linux-headers-`uname -r` dkms Stdout from the command: Stderr from the command: E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.

然后我就 sudo vagrant ssh 进去

手动执行

sudo DEBIAN_FRONTEND=noninteractive apt-get install -y linux-headers-`uname -r` dkms

然后提示我

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem. 

我就再次执行

sudo dpkg --configure -a

然后就顺利执行了 结果如下:

sudo DEBIAN_FRONTEND=noninteractive apt-get install -y linux-headers-`uname -r` dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version (2.2.0.3-2ubuntu11.8).
linux-headers-4.4.0-142-generic is already the newest version (4.4.0-142.168).
The following packages were automatically installed and are no longer required:
libmcrypt4 libpcre2-16-0 libpcre2-32-0 libpcre2-8-0 libpcre2-dev libpcre2-posix2 libzip4
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
nodejs
The following packages will be upgraded:
nodejs
1 upgraded, 0 newly installed, 0 to remove and 233 not upgraded.
1 not fully installed or removed.
Need to get 0 B/18.2 MB of archives.
After this operation, 118 kB of additional disk space will be used.
(Reading database ... 95928 files and directories currently installed.)
Preparing to unpack .../nodejs_12.18.3-1nodesource1_amd64.deb ...
Detected old npm client, removing...
Unpacking nodejs (12.18.3-1nodesource1) over (12.18.2-1nodesource1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up nodejs (12.18.3-1nodesource1) ...

然后我  sudo vagrant reload --provision  就可以了

本机环境virtualbox出现问题重装的更多相关文章

  1. 【转】jumpserver 堡垒机环境搭建(图文详解)

    jumpserver 堡垒机环境搭建(图文详解)   摘要: Jumpserver 是一款由python编写开源的跳板机(堡垒机)系统,实现了跳板机应有的功能.基于ssh协议来管理,客户端无需安装ag ...

  2. 【Data Cluster】真机环境下MySQL数据库集群搭建

    真机环境下MySQL-Cluster搭建文档  摘要:本年伊始阶段,由于实验室对不同数据库性能测试需求,才出现MySQL集群搭建.购置主机,交换机,双绞线等一系列准备工作就绪,也就开始集群搭建.起初笔 ...

  3. 基于docker的 Hyperledger Fabric 多机环境搭建(上)

    环境:ubuntu 16.04 Docker  17.04.0-ce go 1.7.4 consoul v0.8.0.4 ======================================= ...

  4. Android开发环境的发展以及重装系统之后在myeclipse重配Android开发环境。

    android的开发环境早期要自己去去官网下SDK,ADT,AVD等.不仅在一开始要面临国内防火墙的阻拦,四处奔波之后都下载好了,还得自己Linked,可谓困难重重.随着android开发的火热,上面 ...

  5. jumpserver 堡垒机环境搭建

    jumpserver 堡垒机环境搭建(图文详解) https://blog.csdn.net/my_bai/article/details/62226474   http://docs.jumpser ...

  6. Windows系统appium移动端自动化真机环境搭建

    appium-windows-android环境搭建完成以后,就可以进行真机模式下的appium环境搭建啦!! 准备:把要测试的app下载至本机(小波的是把apk放在桌面上,例如:C:\Users\w ...

  7. 轻量级CI/CD发布部署环境搭建及使用_05_安装宿主机环境(jdk、nodejs、maven、python2)

    轻量级CI/CD发布部署环境搭建及使用_05_安装宿主机环境(jdk.nodejs.maven.python2) 尽自己的绵薄之力,为开源技术分享添砖加瓦 本篇幅较多,请按步骤实验安装,截图中版本若有 ...

  8. jumpserver 堡垒机环境搭建(图文详解)

    摘要: Jumpserver 是一款由python编写开源的跳板机(堡垒机)系统,实现了跳板机应有的功能.基于ssh协议来管理,客户端无需安装agent. 特点: 完全开源,GPL授权 Python编 ...

  9. jumpserver 堡垒机环境搭建(图文具体解释)

    Jumpserver 是一款由python编写开源的跳板机(堡垒机)系统,实现了跳板机应有的功能.基于ssh协议来管理,客户端无需安装agent. 特点: 全然开源,GPL授权 Python编写.容易 ...

  10. 堡垒机环境-jumpserver部署

    1:安装数据库 这里是提前安装,也可以不安装,在安装jumpserver主程序的时候,他会询问你是否安装 yum -y install ncurses-devel cmake echo 'export ...

随机推荐

  1. .NET 开源实时监控系统 - WatchDog

    前言 在平时的开发中随着我们系统应用不断地迭代变的复杂,对应用的实时监控变得越来越重要.实时监控不仅可以帮助我们快速定位问题,还能在出现问题时及时采取措施,减少业务中断的时间. 本文将介绍一个名为Wa ...

  2. Dell存储备份告警:

    创建时间 修改日期 对象名称 消息 类型 告警状态 已确认 告警定义 类型 23-3-12 11:59:26 23-3-12 11:59:37 copyMirrorswap 2 CMs Operati ...

  3. 小tips:CSS实现0.5px的边框的两种方式

    方式一 <style> .border { width: 200px; height: 200px; position: relative; } .border::before { con ...

  4. Angular Material 18+ 高级教程 – CDK Accessibility の Focus

    介绍 CDK Focus 是对原生 DOM focus 的上层封装和扩展. Focus Origin 原生 DOM focus 我们只能知道 element 被 focus 了,但是无法知道它是怎么被 ...

  5. ASP.NET Core Library – Nager.PublicSuffix

    前言 有个很简单的需求,想从 URL 里获取到 domain 不要 subdomain. abc.example.com -> example.com 没想到就这么简单的需求,超级难做.而且 . ...

  6. Figma 学习笔记 – Scroll and Position Fixed

    Scroll Scroll 属于 prototype 的一部分. 当一个 Frame 的内容超出 Frame 的高度或宽度时, Frame 就具备了 scroll 的能力. 通过 uncheck cl ...

  7. JavaScript——案例-表单验证

    需求       <!DOCTYPE html> <html lang="en"> <head> <meta charset=" ...

  8. QT数据可视化框架编程实战之三维柱状图从入门到精通_补天云QT技术培训专家

    QT数据可视化框架编程实战之三维柱状图从入门到精通_补天云QT技术培训专家 简介 本文将介绍QT数据可视化框架(QT DataVisualization 模块)编程实战之三维柱状图(Q3DBars)的 ...

  9. Linux工具:Winscp显示隐藏的文件

    事件起因: 需要用Winscp上传文件到服务器,然后发现文件被隐藏了 解决办法: Winscp软件的快捷键 : Ctrl + Alt + HWindscp软件的设置方法: 菜单栏 选项 -> 面 ...

  10. ES5 和 ES6 的区别,说几个 ES6 的新增方法

    ECMAscript5.,即ES5 ,表示 ECMAscript的第五次修订-2009 : ECMAscript6.,即ES6 ,表示 ECMAscript的第六次修订-2015 : ES6 是对于 ...