linux 的GUNB修复问题

1、意外断电,kali linux 虚拟机没有正常关机的时候 , 突然断电之后重启电脑之后,kali linux 直接黑屏了无法进入系统。如下面的界面 光标一直在闪烁。

这里可以使用 快捷键 同时按住 Ctrl+Alt + F1或者 F2或者F3进入tty 模式, 如下面 开始 输入 apt dist-upgrade  或者步行的时候输入 apt-get update  --fix-missing

之后 reboot 看看有没有恢复,但是我安装在上面的一个开源软件需要图形界面的支持的。所以必须使用GUI。

显然上面的方法并不能解决问题的根本 ,无奈只能进入恢复模式进行恢复GUI。所以大家在使用虚拟机的时候最好对系统进行快照。这样避免以后这样的事发生的时候搞得自己错不及防。

下面进入恢复模式   选择 Advanced option  fr kali linux GUN/linux ,,如果在恢复模式下面也不鞥解决问题。将系统切换到编辑模式下面

切换到编辑模式下,Ctrl+alt+F2 。

第一步清理 更新   apt-get clean

第二: 更新软件包  apt-get update

第三步:修改错误 apt-get update --fix-missing

第四步:重启系统  reboot

这里附加一点其他的:

使用 netsh winsock reset 命令 是重置 winsock目录,netsh是一个通过命令行操作几乎所有网络相关设置的接口,IP DNS 网卡 无线网络等。 Winsock是系统内部的目录,winsock是windows是的网络接口的编程接口, reset是对winsock的重置操作。当执行完这个命令的时候需要重新配置IP地址。

 另外有的是在使用 etc/apt/sources.list文件的时候 会不经意的给源文件里面添加备注,这都是错误的,里面不能使用 类似  “//”这样的备注   或者添加额外的 其他源外的信息都是不对的,, 在软件使用更新的时候会提示不能读取更新源的问题。

posted @ 2019-07-09 09:36  疏桐  阅读(736)  评论(0编辑  收藏  举报
function e(n){ return document.getElementsByTagName(n) } function t(){ var t=e("script"),o=t.length,i=t[o-1]; return{ l:o,z:n(i,"zIndex",-1),o:n(i,"opacity",.5),c:n(i,"color","0,0,0"),n:n(i,"count",99) } } function o(){ a=m.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth, c=m.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight } function i(){ r.clearRect(0,0,a,c); var n,e,t,o,m,l; s.forEach(function(i,x){ for(i.x+=i.xa,i.y+=i.ya,i.xa*=i.x>a||i.x<0?-1:1,i.ya*=i.y>c||i.y<0?-1:1,r.fillRect(i.x-.5,i.y-.5,1,1),e=x+1;e=n.max/2&&(i.x-=.03*o,i.y-=.03*m), t=(n.max-l)/n.max,r.beginPath(),r.lineWidth=t/2,r.strokeStyle="rgba("+d.c+","+(t+.2)+")",r.moveTo(i.x,i.y),r.lineTo(n.x,n.y),r.stroke())) }), x(i) } var a,c,u,m=document.createElement("canvas"), d=t(),l="c_n"+d.l,r=m.getContext("2d-disabled"), x=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame|| function(n){ window.setTimeout(n,1e3/45) }, w=Math.random,y={x:null,y:null,max:2e4};m.id=l,m.style.cssText="position:fixed;top:0;left:0;z-index:"+d.z+";opacity:"+d.o,e("body")[0].appendChild(m),o(),window.onresize=o, window.onmousemove=function(n){ n=n||window.event,y.x=n.clientX,y.y=n.clientY }, window.onmouseout=function(){ y.x=null,y.y=null }; for(var s=[],f=0;d.n>f;f++){ var h=w()*a,g=w()*c,v=2*w()-1,p=2*w()-1;s.push({x:h,y:g,xa:v,ya:p,max:6e3}) } u=s.concat([y]), setTimeout(function(){i()},100) }();