使用win10 hyper-v安装linux系统

1、控制面板---程序---启动或关闭windows功能---启动hyper-v管理器---重启

2、下载linux系统镜像,并安装,注意安装过程中要装grub

3、配置网络

因为公司内网通过ip验证,而通过桥接的方式,虚拟机就相当于物理机所在的网络中的一台真实主机,它会被分配一个新的IP地址,但这个ip地址是不能通过验证的。因此不能通过桥接方式连接

新建一个内部虚拟交换机,然后将物理机的网络共享给虚拟交换机,最后将虚拟机的网络适配器设置为这个虚拟交换机就达到了NAT的目的

4、配置源

如果出现apt-get无法使用的问题,那么更新一下源

编辑/etc/apt/sources.list文件,全部注释掉,然后加上下面这些源

deb http://mirrors.163.com/debian/ jessie main non-free contrib
deb http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-updates main non-free contrib
deb-src http://mirrors.163.com/debian/ jessie-backports main non-free contrib
deb http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib
deb-src http://mirrors.163.com/debian-security/ jessie/updates main non-free contrib

然后更新apt-get

apt-get update
apt-get upgrade

就可以了

5、重装vim报错:E: Unable to correct problems, you have held broken packages.

先卸载vim-common

apt-get remove vim-common

再装vim就不会报错了

猜你喜欢

转载自www.cnblogs.com/luozx207/p/10331185.html