存档

文章标签 ‘update’

Android 1.6(Donut) is available for ADP1

2009年9月30日 哈哈 没有评论

自打android 1.6(Donut)的sdk发布
我就天天在htc的官网上观望
看看哪天能出adp1(android develop phone 1)的1.6的刷机包
今天终于看到htc放出来了
具体链接在这里
于是也就迫不及待的下载并升级了
首先刷radio
用usb线连上我的adp1和pc
然后在pc上
adb devices
发现能看见我的adp1
然后再
adb push ota-radio-2_22_19_26I.zip /sdcard/update.zip
这一步是将下载的radio firmware包拷贝到adp1的tf卡上
因为我以前升级过radio firmware(1.1升级到1.5的时候)
所以我需要先在手机上删除掉tf卡上的update.zip
然后再同步下
adb shell sync
再接着重起手机到恢复模式(recovery mode)
怎样进recovery mode?
启动的时候按住Home键直到显示带”!”的图标即可
然后再推开滑盖
同时按下Alt+l键以便在屏幕上显示日志
然后呢
同时按下Alt+s键(屏幕上提示的有)
系统开始从/sdcard/update.zip里提取firmware并执行安装
同时会显示一个”install update”的图标
最后在同时按下HOME+BACK键来把安装的radio firmware写入radio image
写完后,系统会出一个”updating firmware”的图标提示
更新完毕后就会重起到正常模式
Radio Firmware更新完毕

因为我使用的是fastboot方式来升级系统
所以只下载了system包而没有下载recovery包
首先
重起手机到fastboot模式(怎样进入fastboot模式)
如果开始没有把手机连上pc的话现在用usb线把手机连上pc
在pc上输入
fastboot erase userdata
这一步对于我升级来讲可以不做,我也真的就没做
然后
fastboot erase cache
删除缓存(cache)
再接着
fastboot update signed-dream_devphone_userdebug-img-14721.zip
到最后升级完成后
手机系统会自动重起
这是正经开始升级了

到此为止
cupcake->donut升级完毕

debian下apt-get时”There is no public key available for the following key IDs”的问题

2009年3月9日 哈哈 没有评论

某台debian的机器
做apt-get update时
系统警告:

W: There is no public key available for the following key IDs:
4D270D06F42584E6
W: You may want to run apt-get update to correct these problems

连续做了几次apt-get update
都是这个警告提示

按照网上的提示
执行

apt-get install debian-keyring debian-archive-keyring

之后

apt-key update

然后再apt-get update就没有问题了

自动升级wordpress从2.7->2.7.1出30秒超时的问题

2009年2月12日 哈哈 1 条评论

今天系统从2.7升级到2.7.1
wordpress从2.7开始支持自动升级
于是我一点“自动升级”
过一会儿
报错:

“下载失败:Operation timed out after 30 seconds …..”

于是把服务器上的php的超时时间改长
重起apache
还是不行
还是30秒超时
再看apache里也没有30秒超时的设置呀
最后终于找到了
wp-admin/includes/file.php里的download_url()函数的这一句:

$response = wp_remote_get($url, array(‘timeout’ => 30));

限定了30秒超时
改之
再自动升级
OK

upgrade from as4u6 to as5u2 on a x86_64 linux server

2008年12月30日 哈哈 没有评论

这次要升级的是x86_64的系统
而且这次没有将其先升级为as4的最新版
而是直接从as4u6升到as5的
因而碰到的问题大多跟以前大不一样
首先:

rpm -Uvh http://10.0.0.1/pathto5Server/RPMS.os/redhat-release-5Server-5.2.0.4.i386.rpm http://10.0.0.1/pathto5Server/RPMS.os/redhat-release-notes-5Server-12.i386.rpm
apt-get clean all

vim /etc/apt/source.list
将其指向as5的安装软件仓
apt-get update;apt-get check

apt-get install rpm-libs rpm-python rpm yum

这时,出了一大堆的conflict的错误
但是好像所需软件包都当下来了
于是就想干脆强制手工升级得了

cd /var/cache/apt/archives
wget http://10.0.0.1/pathto5server/RPMS.os/glib2-2.12.3-2.fc6.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/glib2-2.12.3-2.fc6.i386.rpm http://10.0.0.1/pathto5server/RPMS.os/e2fsprogs-libs-1.39-15.el5.i386.rpm http://10.0.0.1/pathto5server/RPMS.os/SysVinit-2.86-14.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/rsyslog-2.0.0-11.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/kernel-2.6.18-92.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/initscripts-8.45.19.EL-1.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/rsyslog-2.0.0-11.el5.x86_64.rpm http://10.0.0.1/pathto5server/dmraid-1.0.0.rc13-9.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/libsysfs-2.0.0-6.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/kpartx-0.4.7-17.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/udev-095-14.16.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/mkinitrd-5.1.19.6-28.i386.rpm http://10.0.0.1/pathto5server/RPMS.os/e2fsprogs-1.39-15.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/procps-3.2.7-9.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/rsyslog-2.0.0-11.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/sysklogd-1.4.1-44.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/uuidd-1.39-15.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/e2fsprogs-libs-1.39-15.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/device-mapper-multipath-0.4.7-17.el5.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/nash-5.1.19.6-28.x86_64.rpm http://10.0.0.1/pathto5server/RPMS.os/lm_sensors-2.10.0-3.1.x86_64.rpm

这里之所以wget抓这么多东西回来
主要是因为这些包都是下面yum update时需要的,所以就干脆先做了

rpm -Uvh *.rpm –replacefiles

强制升级
完毕后
vim /etc/yum/yum.conf
将yum的源指向我们自己的软件仓
yum update
这时出rpm库打不开的错误
具体见这里
然后按照上面文章里的解决方法解决后
接着

yum update
yum groupinstall base

然后再ntsysv配一下启动的服务就差不多了
reboot

“yum update”时的错误

2008年12月29日 哈哈 没有评论

系统报错:

/usr/lib/python2.4/site-packages/_sqlitecache.so: undefined symbol: g_assert_warning

google了一下
原来是glib2这个包没有升级的缘故
于是手工rpm -Uvh 了一下
然后就好了

fc5升级到fc6的时候的错误

2008年4月28日 哈哈 没有评论

当yum update rpm yum成功后
再运行yum upgrade的时候报错:

/usr/lib/python2.4/site-packages/rpm/_rpmmodule.so: undefined symbol: rpmdbCheckTerminate

后来发现是因为rpm-libs包没有升级的原因
于是从安装服务器上抓来正确的rpm-libs包装上了事
rpm -Uvh http://192.168.1.1/pub/os/Linux/Fedora/i386/6/RPMS.updates/rpm-libs-4.4.2.1-2.fc6.i386.rpm
# 192.168.1.1是安装服务器ip

upgrade from fedora core 5 to fedora core 6

2008年4月28日 哈哈 没有评论

yum clean all
rpm -Uvh http://192.168.1.1/pub/os/Linux/Fedora/i386/6/RPMS.os/fedora-release-6-4.noarch.rpm http://192.168.1.1/pub/os/Linux/Fedora/i386/6/RPMS.os/fedora-release-notes-6-3.noarch.rpm
# 192.168.1.1是内网的安装服务器,fedora-release-6依赖于fedora-release-notes-6,所以这里需要同是升级
yum update rpm\* yum\*
# 注意这里一定要加上”\*”,我曾经直接用yum update rpm yum,结果没有升级rpm-libs包,导致再次运行yum失败
rpm -e VFlib2 bg5ps
# 删掉一些出依赖错误但又不重要的软件包
yum upgrade
reboot

再贴一个用yum升级fedora core的文档(fc5->fc6)

2007年12月15日 哈哈 没有评论

官方关于Fedora Core用yum升级的文档在这里
以下过程也是参照这个文档
然后在自己机器上的实际升级步骤(“xxx.xxx.xxx.xxx”是内网上的一台install server的ip地址)
yum clean all
cd /tmp
wget http://xxx.xxx.xxx.xxx/pub/os/Linux/Fedora/i386/6/RPMS.os/fedora-release-6-4.noarch.rpm
wget http://xxx.xxx.xxx.xxx/pub/os/Linux/Fedora/i386/6/RPMS.os/fedora-release-notes-6-3.noarch.rpm
rpm -Uvh fedora-release-6-4.noarch.rpm fedora-release-notes-6-3.noarch.rpm
yum update rpm\* yum\*

rpm -e kernel-*-6.15…….(将6.17以下的kernel的rpm都干掉)
rpm -e libgnome-java libglade-java glib-java libvte-java cairo-java libgtk-java frysk bind caching-nameserver NetworkManager(这里是解决upgrade的时候有可能会出现的Missing Dependency的情况的)
yum upgrade
reboot

That’s OK!