运行 apt-get 或 vim 时终端冻结

运行 apt-get 或 vim 时终端冻结

我在用Ubuntu 13.04在我的笔记本电脑上。

ssh对我的EC2 实例正在运行Ubuntu 12.04.3每次我运行时sudo apt-get update,它都会打印一些行,然后终端冻结。

ubuntu@ubuntu:~$ sudo apt-get update
Hit http://us-east-1.ec2.archive.ubuntu.com precise Release.gpg
Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates Release.gpg
Hit http://us-east-1.ec2.archive.ubuntu.com precise Release
Hit http://us-east-1.ec2.archive.ubuntu.com precise-updates Release                                 
Hit http://us-east-1.ec2.archive.ubuntu.com precise/main Sources

(no further output)

同样,当打开一个文件(或新文件)时,它会冻结并出现空白屏幕vim,而nano运行时则可以正常工作。

我还想指出的是,这不是一天前发生的,在这个问题出现之前,我sudo apt-get update && sudo apt-get dist-upgrade在 ec2 实例上运行,它像往常一样正常工作。

这使得我的 AWS 实例无法使用,而我的大部分工作都是在这个实例上进行的。有什么想法可以解释为什么会出现这种情况以及如何解决它吗?

我已经尝试重新安装vim(顺便说一下,这有效)但它仍然冻结,我感到无助,请帮助我。

笔记:有趣的是,我仍然可以编辑文件vim,只是在终端上看不到任何事情发生。

答案1

更改 ec2 上的 MTU 值帮我解决了这个问题......

sudo /sbin/ifconfig eth0 mtu 1492

相关内容