注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

My Unix World

不要迷恋Unix,Unix只是计算世界很小的一部分!

 
 
 

日志

 
 

To solve sevel issues of the yardvps  

2011-08-30 18:44:12|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

To solve an issue when running apt-get upgradefor xen vps

http://www.linuxquestions.org/questions/debian-26/update-problem-870114/

This was a tricky one, but the thing is that your /boot/grub/device.mapprobably contains "(hd0) /dev/sda", while your root fs is at /dev/xvda1(and swap at /dev/xvda2).

To update the kernel, you will need to:
1) Edit /boot/grub/device.map and replace "/dev/sda" with "/dev/xvda".
2) Actually create a /dev/xvda, that probably does not exist. Do it with: "mknod /dev/xvda b 202 0"
3) Fix the "update-grub" script to find the device correctly, which youcan do by editing /usr/sbin/update-grub, locating the function"find_device()" and replacing the "grub-probe" line with somethinglike: "echo /dev/xvda"
4) Now, try "aptitude update" and "aptitude upgrade" again.

If you still have an error, try running "update-grub 0" manually and then "aptitude upgrade" again.

For yardvps, also need to change /dev/xvda to /dev/xvda1 at  /boot/grub/menu.lst

 

=========================================

http://en.gentoo-wiki.com/wiki/Rxvt-Unicode

Error opening terminal: rxvt-unicode.

If you get the error "Error opening terminal: rxvt-unicode." whentrying to run nano on a remote machine, running this command from themachine on which you have rxvt-unicode installed will resolve theissue:

infocmp rxvt-unicode | ssh USER@REMOTE_IP "mkdir -p .terminfo && cat >/tmp/ti && tic /tmp/ti"

If you're performing an install via SSH, you can run the above command and then run this:

cp -R /root/.terminfo /mnt/gentoo/root

So that when you chroot you should not have an issue.

 

  评论这张
 
阅读(644)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017