日常问题收集笔记本(持续更新)

来源:互联网 发布:php输出超链接 编辑:程序博客网 时间:2024/05/22 00:24

问题集合(持续更新)

1.Ubuntu下安装OpenGL库

打开终端(ctrl + alt + T),键入如下命令:
sudo apt-get install freeglut3 freeglut3-dev
安装完事即可,或许出现某些问题,但是我电脑没有。
下面引用别人一句话,或许以后会遇到。
如果Ubuntu的版本在11.10或者更高的话还需要安装下面的包以解决连接问题
// For newer versions of Ubuntu(>=11.10) you have to install another package because the linker does not link anymore. 
sudo apt-get install binutils-gold

引自:http://tmjfzy.blog.163.com/blog/static/6644702520122964442458/

----------------------------------------------------------------------------------------------------------------

2. Ubuntu更新提示磁盘空间不足


使用以下命令解决(删除那些除了本机正在使用中的最新内核外的所有旧内核文件):

sudo apt-get remove --purge $(dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')
--------------------------------------------------------------------------------------------------------------------

3. 双系统Win8无法进入,Ubunut下无法挂载Win8系统盘解决

win8无法进入一直在登录界面循环,而在ubuntu下显示如下信息:
Error mounting /dev/sda5 at /media/rying/Windows8_OS: Command-line `mount -t "ntfs" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,dmask=0077,fmask=0177" "/dev/sda5" "/media/rying/Windows8_OS"' exited with non-zero exit status 14: The disk contains an unclean file system (0, 0).Metadata kept in Windows cache, refused to mount.Failed to mount '/dev/sda5': Operation not permittedThe NTFS partition is in an unsafe state. Please resume and shutdownWindows fully (no hibernation or fast restarting), or mount the volumeread-only with the 'ro' mount option.
解决办法:
安装ntfs-3g
sudo apt-get install ntfs-3g
之后修复相应磁盘,命令如下,换成相应的无法挂载的磁盘序号
sudo ntfsfix  /dev/sda6




0 0
原创粉丝点击