由买买提看人间百态

topics

全部话题 - 话题: bootchart
1 (共1页)
z****t
发帖数: 1090
1
下面是我刚刚在live cd下招待sudo apt-get upgrade时 的情况
前面有个Removing bootchart... 是因为这个错误第一次发生在我要删除bootchart时, 后来就一直有错 所
以bootchart实际上并没有删掉
...

Extracting templates from packages: 100%
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 210385 files and directories currently installed.)
Removing bootchart ...
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
dpkg: version 'uname -r' has bad syntax: v... 阅读全帖
z****t
发帖数: 1090
2
再执行了一下删除bootchart, 错误如下
$ sudo apt-get remove bootchart
[sudo] password for zebrat:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
bootchart
0 upgraded, 0 newly installed, 1 to remove and 42 not upgraded.
1 not fully installed or removed.
After this operation, 127kB disk space will be freed.
Do you want to continue [Y/n]? Y
(Reading database ... 210385 files and directories currently installed.)
Removing bo... 阅读全帖
z****t
发帖数: 1090
3
下面就是bootchart.postinst的代码 很短啊
#!/bin/sh -e
# This script can be called in the following ways:
#
# After the package was installed:
# configure
#
#
# If prerm fails during upgrade or fails on failed upgrade:
# abort-upgrade
#
# If prerm fails during deconfiguration of a package:
# abort-deconfigure in-favour
# removing
#
# If prerm fails during replacement due to co... 阅读全帖
z****t
发帖数: 1090
4
贴个从一最开始的错误 也许这个installArchives有线索
installArchives() failed: Selecting previously deselected package ttf-ubuntu
-title.
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database .... 阅读全帖
z****t
发帖数: 1090
5
我想试试跳过删除bootchart这一步 看看是不是因为bootchart引起的问题
但发现新立得里面 竟然没有 "Apply" 是灰的, 不可用。 ubuntu10.10强制让人用software center?
z****t
发帖数: 1090
6
没看懂最后一个贴子。 那是个fix吗?
我刚怀疑是不是bootchart里用错了 但看了/etc/init/bootchart.conf 里面就没有
uname这个串。
z****t
发帖数: 1090
7
对了 这个错误第一次出现 正是我在删除bootchart时 因为感觉bootchart也没什么用 不想让它每次启动就生
成一堆东西
z****t
发帖数: 1090
8
可能就是这样
$ echo “uname -r”
uname -r
$ echo `uname -r`
2.6.35-22-generic
可以怎么查 bootchart那几个脚本里我都看了一下 没有这句
前面提到 在bootchart.postinst里有这样一句
if dpkg --compare-versions "$2" lt "0.90.2-1"
那我是不是应该改成
if dpkg --compare-versions `$2` lt '0.90.2-1'
但是$2是参数, 不是命令, 用"好象也可以。
z****t
发帖数: 1090
9
现在就是只能留着那个bootchart了 有点搞笑 等提个bootchart的bug
很爽, 虽然是在各位大侠的帮助下, 但成功解决了一个不能网上找到答案的问题,
还是小有成就感。 这几年虽然一直用ubuntu, 但太易用了,就是用用而已, 少去
探究深层linux的工作方式。 现在看来以后还要多了解了解。 多逛本版,多学习!
z****t
发帖数: 1090
10
live cd 试了也不行 奇怪怎么连在live cd上执行 也有错 难道是bootchart
导致的?
z****t
发帖数: 1090
11
有点线索了
/var/lib/dpkg/info/bootchart.preinst 里面有一句。 跟那个 bug类似
if dpkg --compare-versions "$2" lt "0.90.2-1"; then
。。。
那个fix是什么意思, 怎么操作的?
z****t
发帖数: 1090
12
另发现 我的新立得 就是不能"apply" bootchart , 其它的包的安装和删除还是可
用的

用software center?
z****u
发帖数: 3461
13
sudo apt-get install --reinstall bootchart
z****t
发帖数: 1090
14
那到是会
怎么强制让synaptic 把已经标记了要删除的bootchart 标记为不删除? 用命令也行
z****t
发帖数: 1090
15
不会啊
我现在非常怀疑这个问题就是bootchart搞得鬼 加上dpkg自己对安装过程中出错的时
候处理不当
n*****t
发帖数: 22014
16
bootchart 的 postinit/preinit 问题吧,俺现在没用 ubuntu,没法查。
uname -r 应该是用 ` 括起来,而不是 '
bash 的语法还可以是 $(uname -r),grep 一下,改改就行了。这个用 m$ 的重装不管
用的,表折腾了
y***d
发帖数: 2330
17
ls /var/lib/initramfs-tools
看看里面有没有 "uname -r" "uname" 样子的文件,如果有的话,删掉,然后再安装
bootchart 试试。

随便执行安装 又出来了
25-
22-
z****t
发帖数: 1090
18
果然有. 你是说试试重新安装还是删除? bootchart现在是installed的了
(因为删除一直不成功)
$ls /var/lib/initramfs-tools/
2.6.32-25-generic 2.6.35-22-generic uname uname -r
y***d
发帖数: 2330
19
把这两个 uname* 删除了,为安全起见可能 boot 下的也要删,然后 bootchart 删除
重装都行,随意
z****t
发帖数: 1090
20
great! 成功重装安装bootchart!
然后试着执行了一下 update-manager 所有更新全部正常安装!
太激动了 非常感谢ylsdd还有各位大侠!!

for python support...
z****t
发帖数: 1090
21
对 我刚在也想 不如看看哪些脚本里有这句
但没有bootchart 还是现在正常了才没有的
$ grep "uname -r" /var/lib/dpkg/info/*
/var/lib/dpkg/info/libc6.preinst: kernel_rev=$(uname -r | sed 's/\([0-9
]*\.[0-9]*\.\)\([0-9]*\)\
(.*\)/\2/')
/var/lib/dpkg/info/libc6.preinst: kernel_ver=`uname -r`
/var/lib/dpkg/info/libc6.preinst: kernel_ver=`uname -r`
/var/lib/dpkg/info/linux-image-2.6.32-25-generic.prerm:chop($running=`uname
-r`);
/var/lib/dpkg/info/linux-image-2.6.35-22-generic.prerm:chop($running=`uname
-r`);
/var/lib/... 阅读全帖
n*****t
发帖数: 22014
22
不一定是 bootchart, 有可能是 dependence。
另外那个 $2 比较可疑,不知道 caller 传过来的是什么东西,如果有兴趣可以加个
echo 看看。
不过搞定了就算了,没啥好玩的,LOL

-9
uname
z****t
发帖数: 1090
23
有可能 可能是bootchart.postinst中调用 我昨天也想到可以加入这个echo看

en 等那天想折腾了再看看 反正有解决方案 也不用怕什么 hehe
z****t
发帖数: 1090
24
来自主题: Linux版 - 在线升级ubuntu 11.10中...
有什么问题。 我这很好用啊。 和比11.04比没太大变化,就是细节好看了点, 速
度更快点。窗口切换, dash的弹出快了点; 比较明显快的是vbox4.1.4时。 启动可能也快点了,或者是因为我
禁止了bootchart的原因。
1 (共1页)