z****t 发帖数: 1090 | 1 标题是起着玩的,吸引眼球。 但还是头一次碰到问题网上找不到任何线索来解决了。
用了10.10几天没什么问题, 今天突然用软件中心或新立得安装删除软件时 突然有了
这个错误 dpkg: version
'uname -r' has bad syntax
取不到内核版本,导致后面的错误。 还以为是dpkg的问题,但试着重装过dpkg不行,
同样的错误; 试着从live
cd重装dpkg也是同样的错误。 现在怀疑是shell的问题, shell执行的时候'uname
-r' 没有当成命令执行。 但
不知道可以怎么解决, 换个shell吗 有没有问题。 ubuntu默认的shell是 /bin/bash
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
update-initramfs: Generating /boot/initrd.img-uname
grep: /boot/config-uname: No such file or directory
WARNING: missing /lib/modules/uname
Device driver support needs thus be built-in linux image!
FATAL: modules must be specified using absolute paths.
"uname" is a relative path
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory |
y***d 发帖数: 2330 | 2 ubuntu 默认的 shell 现在是 dash 了吧
uname
bash
spaces
【在 z****t 的大作中提到】 : 标题是起着玩的,吸引眼球。 但还是头一次碰到问题网上找不到任何线索来解决了。 : : 用了10.10几天没什么问题, 今天突然用软件中心或新立得安装删除软件时 突然有了 : 这个错误 dpkg: version : 'uname -r' has bad syntax : 取不到内核版本,导致后面的错误。 还以为是dpkg的问题,但试着重装过dpkg不行, : 同样的错误; 试着从live : cd重装dpkg也是同样的错误。 现在怀疑是shell的问题, shell执行的时候'uname : -r' 没有当成命令执行。 但 : 不知道可以怎么解决, 换个shell吗 有没有问题。 ubuntu默认的shell是 /bin/bash
|
z****t 发帖数: 1090 | 3 我的是bash 我是不是应该改成dash试试 直接用命令chsh 然后选/bin/dash就行
了吧?
【在 y***d 的大作中提到】 : ubuntu 默认的 shell 现在是 dash 了吧 : : uname : bash : spaces
|
y***d 发帖数: 2330 | 4 interactive 的 shell 默认的还是 bash,但是,运行各种脚本时,默认的 shell 是
dash;建议你不要改这个(ls -l /bin/sh)
你碰到的这个问题,似乎本来是要让 uname -r 作为一个命令运行的,结果因为引号的
不对,或者 shell 的问题,导致 uname -r 直接作为结果字符串了。
你要挖一挖在哪个脚本里面运行的 uname -r,看看那里怎么写错了,找到解决办法后
报一个 bug。
【在 z****t 的大作中提到】 : 我的是bash 我是不是应该改成dash试试 直接用命令chsh 然后选/bin/dash就行 : 了吧?
|
y***d 发帖数: 2330 | 5 https://bugs.launchpad.net/ubuntu/+source/dovecot/+bug/622202
http://ubuntuforums.org/showthread.php?t=1601208
uname
bash
spaces
【在 z****t 的大作中提到】 : 标题是起着玩的,吸引眼球。 但还是头一次碰到问题网上找不到任何线索来解决了。 : : 用了10.10几天没什么问题, 今天突然用软件中心或新立得安装删除软件时 突然有了 : 这个错误 dpkg: version : 'uname -r' has bad syntax : 取不到内核版本,导致后面的错误。 还以为是dpkg的问题,但试着重装过dpkg不行, : 同样的错误; 试着从live : cd重装dpkg也是同样的错误。 现在怀疑是shell的问题, shell执行的时候'uname : -r' 没有当成命令执行。 但 : 不知道可以怎么解决, 换个shell吗 有没有问题。 ubuntu默认的shell是 /bin/bash
|
z****t 发帖数: 1090 | 6 对 interactive的shell是bash 我的ls -l /bin/sh -> dash
我也怀疑这个 现在是不管执行都会有这个问题 因为一进安装或者删除后都要更新
很多东东 就都要用到kernel
号 可能是这个脚本在每次更新软件时都会被调用 我怎么能跟踪看哪个脚本出
的错?
另外问题是,如果是ubuntu bug, 奇怪怎么好象就我用这个问题。 我也没干什么, 就
是在线升级到10.10, 都
是正常使用而已。
曾经也试过用live cd的/var/lib/dpkg/available 来替代系统的 也不行。
是
【在 y***d 的大作中提到】 : interactive 的 shell 默认的还是 bash,但是,运行各种脚本时,默认的 shell 是 : dash;建议你不要改这个(ls -l /bin/sh) : 你碰到的这个问题,似乎本来是要让 uname -r 作为一个命令运行的,结果因为引号的 : 不对,或者 shell 的问题,导致 uname -r 直接作为结果字符串了。 : 你要挖一挖在哪个脚本里面运行的 uname -r,看看那里怎么写错了,找到解决办法后 : 报一个 bug。
|
z****t 发帖数: 1090 | |
y***d 发帖数: 2330 | 8 不知道怎么跟踪,version string has embedded spaces 存在于 /usr/bin/dpkg,看
看谁调用它?
或者重装...
【在 z****t 的大作中提到】 : hehe 那两个贴就是我发的 很想搞定这个问题 不然我的ubuntu没法安装软件了 就 : 到处发了
|
z****t 发帖数: 1090 | 9 /usr/sbin/dpkg-statoverride 是个二进制文件
你是说把root删掉那种重装? 但怕太麻烦了 这么多软件得重装 虽然我/home是
另外一个分区
对 live cd会不会有什么恢复的功能
【在 y***d 的大作中提到】 : 不知道怎么跟踪,version string has embedded spaces 存在于 /usr/bin/dpkg,看 : 看谁调用它? : 或者重装...
|
y***d 发帖数: 2330 | 10 dpkg 这个程序里面有这个字符串,应该是对 dpkg 的调用出的问题;
如果想折腾,你可以,比如,把 dpkg 改名成 xxx,写一个新的 dpkg,里面调用 xxx
,并且记录点啥东西,或者 sleep 一会,让你有机会截获它。
【在 z****t 的大作中提到】 : /usr/sbin/dpkg-statoverride 是个二进制文件 : 你是说把root删掉那种重装? 但怕太麻烦了 这么多软件得重装 虽然我/home是 : 另外一个分区 : 对 live cd会不会有什么恢复的功能
|
|
|
z****t 发帖数: 1090 | 11 网上找了个用live cd修复系统的方法 准备试试 不知道会不会管用 但我昨天用
live cd重装dpkg是有同样的错误
put you livecd in and restart...then just lo on to livecd....
then open terminal
type
sudo mkdir /mnt/repair
sudo mount /dev/?d?? /mnt/repair
*noted that ?d? mean part of your ubuntu root partition....it might be sda1.
..or hdb1 or sdb or whatever...depend where you install your ubuntu....
sudo chroot /mnt/repair su
sudo apt-get update
sudo apt-get upgrade
sudo aptitude upgrade
sudo apt-get -f install
sudo dpkg --configure -a
sudo apt-get upgrade |
y***d 发帖数: 2330 | 12 “dpkg: version 'uname -r' has bad syntax: version string has embedded
spaces"
这个之前 log 说啥,可能也有帮助。
sda1.
【在 z****t 的大作中提到】 : 网上找了个用live cd修复系统的方法 准备试试 不知道会不会管用 但我昨天用 : live cd重装dpkg是有同样的错误 : put you livecd in and restart...then just lo on to livecd.... : then open terminal : type : sudo mkdir /mnt/repair : sudo mount /dev/?d?? /mnt/repair : *noted that ?d? mean part of your ubuntu root partition....it might be sda1. : ..or hdb1 or sdb or whatever...depend where you install your ubuntu.... : sudo chroot /mnt/repair su
|
z****t 发帖数: 1090 | 13 太复杂了 我对linux不熟 怕操作起来不行 先试试live cd
xxx
【在 y***d 的大作中提到】 : dpkg 这个程序里面有这个字符串,应该是对 dpkg 的调用出的问题; : 如果想折腾,你可以,比如,把 dpkg 改名成 xxx,写一个新的 dpkg,里面调用 xxx : ,并且记录点啥东西,或者 sleep 一会,让你有机会截获它。
|
z****t 发帖数: 1090 | 14 下面是我刚刚在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: version string has embedded spaces
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
update-initramfs: Generating /boot/initrd.img-uname
grep: /boot/config-uname: No such file or directory
WARNING: missing /lib/modules/uname
Device driver support needs thus be built-in linux image!
FATAL: modules must be specified using absolute paths.
"uname" is a relative path
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory
【在 y***d 的大作中提到】 : “dpkg: version 'uname -r' has bad syntax: version string has embedded : spaces" : 这个之前 log 说啥,可能也有帮助。 : : sda1.
|
z****t 发帖数: 1090 | 15 live cd 试了也不行 奇怪怎么连在live cd上执行 也有错 难道是bootchart
导致的?
【在 z****t 的大作中提到】 : 太复杂了 我对linux不熟 怕操作起来不行 先试试live cd : : xxx
|
z****t 发帖数: 1090 | 16 再执行了一下删除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 bootchart ...
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
update-initramfs: Generating /boot/initrd.img-uname
grep: /boot/config-uname: No such file or directory
WARNING: missing /lib/modules/uname
Device driver support needs thus be built-in linux image!
FATAL: modules must be specified using absolute paths.
"uname" is a relative path
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory |
z****t 发帖数: 1090 | 17 我想试试跳过删除bootchart这一步 看看是不是因为bootchart引起的问题
但发现新立得里面 竟然没有 "Apply" 是灰的, 不可用。 ubuntu10.10强制让人用software center? |
S***d 发帖数: 1802 | |
z****t 发帖数: 1090 | 19 没看懂最后一个贴子。 那是个fix吗?
我刚怀疑是不是bootchart里用错了 但看了/etc/init/bootchart.conf 里面就没有
uname这个串。
【在 S***d 的大作中提到】 : Did u try the solution here? : https://bugs.launchpad.net/ubuntu/+source/ufw/+bug/618410
|
z****t 发帖数: 1090 | 20 有点线索了
/var/lib/dpkg/info/bootchart.preinst 里面有一句。 跟那个 bug类似
if dpkg --compare-versions "$2" lt "0.90.2-1"; then
。。。
那个fix是什么意思, 怎么操作的? |
|
|
z****t 发帖数: 1090 | 21 另发现 我的新立得 就是不能"apply" bootchart , 其它的包的安装和删除还是可
用的
用software center?
【在 z****t 的大作中提到】 : 我想试试跳过删除bootchart这一步 看看是不是因为bootchart引起的问题 : 但发现新立得里面 竟然没有 "Apply" 是灰的, 不可用。 ubuntu10.10强制让人用software center?
|
s*******n 发帖数: 2828 | 22 赶紧用gentoo吧
【在 z****t 的大作中提到】 : 另发现 我的新立得 就是不能"apply" bootchart , 其它的包的安装和删除还是可 : 用的 : : 用software center?
|
z****t 发帖数: 1090 | 23 我ubuntu用着一直挺好 这还是第一次网上都搜不到答案
【在 s*******n 的大作中提到】 : 赶紧用gentoo吧
|
s*******n 发帖数: 2828 | 24 毛病只会越用越多
【在 z****t 的大作中提到】 : 我ubuntu用着一直挺好 这还是第一次网上都搜不到答案
|
z****u 发帖数: 3461 | 25 sudo apt-get install --reinstall bootchart
【在 z****t 的大作中提到】 : 没看懂最后一个贴子。 那是个fix吗? : 我刚怀疑是不是bootchart里用错了 但看了/etc/init/bootchart.conf 里面就没有 : uname这个串。
|
z****t 发帖数: 1090 | 26 那到是会
怎么强制让synaptic 把已经标记了要删除的bootchart 标记为不删除? 用命令也行
【在 s*******n 的大作中提到】 : 毛病只会越用越多
|
z****t 发帖数: 1090 | 27 不行啊 这个是最早用过 一样的错误
【在 z****u 的大作中提到】 : sudo apt-get install --reinstall bootchart
|
N****w 发帖数: 21578 | 28 uname -r 到底是输出啥字符串?
【在 z****t 的大作中提到】 : 不行啊 这个是最早用过 一样的错误
|
z****t 发帖数: 1090 | 29 输出是对的
$uname -r
2.6.35-22-generic
【在 N****w 的大作中提到】 : uname -r 到底是输出啥字符串?
|
z****t 发帖数: 1090 | 30 对了 这个错误第一次出现 正是我在删除bootchart时 因为感觉bootchart也没什么用 不想让它每次启动就生
成一堆东西
【在 z****t 的大作中提到】 : 有点线索了 : /var/lib/dpkg/info/bootchart.preinst 里面有一句。 跟那个 bug类似 : if dpkg --compare-versions "$2" lt "0.90.2-1"; then : 。。。 : 那个fix是什么意思, 怎么操作的?
|
|
|
N****w 发帖数: 21578 | 31 把 dpkg 的源码拿来编译个 dbg 版调试调试哈
什么用 也不想它每次启动就生
【在 z****t 的大作中提到】 : 对了 这个错误第一次出现 正是我在删除bootchart时 因为感觉bootchart也没什么用 不想让它每次启动就生 : 成一堆东西
|
N****w 发帖数: 21578 | 32 前后都没有空格?
locale 对吗?
【在 z****t 的大作中提到】 : 输出是对的 : $uname -r : 2.6.35-22-generic
|
z****t 发帖数: 1090 | 33 我确定 没有 locale就是英文 一直没变过
【在 N****w 的大作中提到】 : 前后都没有空格? : locale 对吗?
|
z****t 发帖数: 1090 | 34 不会啊
我现在非常怀疑这个问题就是bootchart搞得鬼 加上dpkg自己对安装过程中出错的时
候处理不当
【在 N****w 的大作中提到】 : 把 dpkg 的源码拿来编译个 dbg 版调试调试哈 : : 什么用 也不想它每次启动就生
|
y***d 发帖数: 2330 | 35 boot 分区空间够吧?
【在 z****t 的大作中提到】 : 不会啊 : 我现在非常怀疑这个问题就是bootchart搞得鬼 加上dpkg自己对安装过程中出错的时 : 候处理不当
|
n*****t 发帖数: 22014 | 36 bootchart 的 postinit/preinit 问题吧,俺现在没用 ubuntu,没法查。
uname -r 应该是用 ` 括起来,而不是 '
bash 的语法还可以是 $(uname -r),grep 一下,改改就行了。这个用 m$ 的重装不管
用的,表折腾了 |
z****t 发帖数: 1090 | 37 boot和root在一个区 12G 才用了大半
【在 y***d 的大作中提到】 : boot 分区空间够吧?
|
V*E 发帖数: 1642 | 38 简单,format,
冲撞
uname
bash
spaces
【在 z****t 的大作中提到】 : 标题是起着玩的,吸引眼球。 但还是头一次碰到问题网上找不到任何线索来解决了。 : : 用了10.10几天没什么问题, 今天突然用软件中心或新立得安装删除软件时 突然有了 : 这个错误 dpkg: version : 'uname -r' has bad syntax : 取不到内核版本,导致后面的错误。 还以为是dpkg的问题,但试着重装过dpkg不行, : 同样的错误; 试着从live : cd重装dpkg也是同样的错误。 现在怀疑是shell的问题, shell执行的时候'uname : -r' 没有当成命令执行。 但 : 不知道可以怎么解决, 换个shell吗 有没有问题。 ubuntu默认的shell是 /bin/bash
|
z****t 发帖数: 1090 | 39 可能就是这样
$ 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是参数, 不是命令, 用"好象也可以。
【在 n*****t 的大作中提到】 : bootchart 的 postinit/preinit 问题吧,俺现在没用 ubuntu,没法查。 : uname -r 应该是用 ` 括起来,而不是 ' : bash 的语法还可以是 $(uname -r),grep 一下,改改就行了。这个用 m$ 的重装不管 : 用的,表折腾了
|
z****t 发帖数: 1090 | 40 下面就是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 conflict:
# abort-remove in-favour
# Update all initramfs
update_initramfs()
{
update-initramfs -u -k all
}
case "$1" in
configure)
if dpkg --compare-versions "$2" lt "0.90.2-1"
then
update-rc.d -f zzz-bootchart-stop remove
update-rc.d -f stop-bootchart remove
fi
update_initramfs
;;
abort-upgrade|abort-deconfigure|abort-remove)
;;
*)
echo "$0 called with unknown argument \`$1'" 1>&2
exit 1
;;
esac
# Automatically added by dh_installinit
update-rc.d -f bootchart remove >/dev/null || exit $?
# End automatically added section
exit 0
【在 z****t 的大作中提到】 : 可能就是这样 : $ 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'
|
|
|
z****t 发帖数: 1090 | 41 update-initramfs里面有下面几句 但看上去是对的
set_current_version()
{
if [ -f /boot/initrd.img-`uname -r` ]; then
version=`uname -r`
fi
} |
z****t 发帖数: 1090 | 42 发现一个/boot下面竟然多了两个搞笑的东东 好象每次安装后自动生成的 删了 随便执行安装 又出来了
$ ls /boot/initrd.img-* -l
-rw-r--r-- 1 root root 9890222 2010-10-21 23:19 /boot/initrd.img-2.6.32-25-
generic
-rw-r--r-- 1 root root 11013113 2010-10-21 23:19 /boot/initrd.img-2.6.35-22-
generic
-rw-r--r-- 1 root root 2582650 2010-10-21 23:19 /boot/initrd.img-uname
-rw-r--r-- 1 root root 2577207 2010-10-13 21:10 /boot/initrd.img-uname -r |
V*E 发帖数: 1642 | 43 ft
你不知道“” ‘’, ``的差别阿。。。
【在 z****t 的大作中提到】 : 可能就是这样 : $ 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'
|
z****t 发帖数: 1090 | 44 不好意思 n久前用过一点点shell 后来就没再用过了 ubuntu是用着玩的 而且我是想看看 bash 和 dash对引号
有没有区别
【在 V*E 的大作中提到】 : ft : 你不知道“” ‘’, ``的差别阿。。。
|
z****t 发帖数: 1090 | 45 贴个从一最开始的错误 也许这个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 ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 210415 files and directories currently installed.)
Unpacking ttf-ubuntu-title (from .../ttf-ubuntu-title_0.3-0ubuntu1_all.deb)
...
Processing triggers for fontconfig ...
Setting up bootchart (0.90.2-7) ...
Removing any system startup links for /etc/init.d/zzz-bootchart-stop ...
Removing any system startup links for /etc/init.d/stop-bootchart ...
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
dpkg: version 'uname -r' has bad syntax: version string has embedded spaces
update-initramfs: Generating /boot/initrd.img-uname
grep: /boot/config-uname: No such file or directory
WARNING: missing /lib/modules/uname
Device driver support needs thus be built-in linux image!
FATAL: modules must be specified using absolute paths.
"uname" is a relative path
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory
FATAL: Could not load /lib/modules/uname/modules.dep: No such file or
directory |
y***d 发帖数: 2330 | 46 ls /var/lib/initramfs-tools
看看里面有没有 "uname -r" "uname" 样子的文件,如果有的话,删掉,然后再安装
bootchart 试试。
随便执行安装 又出来了
25-
22-
【在 z****t 的大作中提到】 : 发现一个/boot下面竟然多了两个搞笑的东东 好象每次安装后自动生成的 删了 随便执行安装 又出来了 : $ ls /boot/initrd.img-* -l : -rw-r--r-- 1 root root 9890222 2010-10-21 23:19 /boot/initrd.img-2.6.32-25- : generic : -rw-r--r-- 1 root root 11013113 2010-10-21 23:19 /boot/initrd.img-2.6.35-22- : generic : -rw-r--r-- 1 root root 2582650 2010-10-21 23:19 /boot/initrd.img-uname : -rw-r--r-- 1 root root 2577207 2010-10-13 21:10 /boot/initrd.img-uname -r
|
z****t 发帖数: 1090 | 47 果然有. 你是说试试重新安装还是删除? bootchart现在是installed的了
(因为删除一直不成功)
$ls /var/lib/initramfs-tools/
2.6.32-25-generic 2.6.35-22-generic uname uname -r
【在 y***d 的大作中提到】 : ls /var/lib/initramfs-tools : 看看里面有没有 "uname -r" "uname" 样子的文件,如果有的话,删掉,然后再安装 : bootchart 试试。 : : 随便执行安装 又出来了 : 25- : 22-
|
y***d 发帖数: 2330 | 48 把这两个 uname* 删除了,为安全起见可能 boot 下的也要删,然后 bootchart 删除
重装都行,随意
【在 z****t 的大作中提到】 : 果然有. 你是说试试重新安装还是删除? bootchart现在是installed的了 : (因为删除一直不成功) : $ls /var/lib/initramfs-tools/ : 2.6.32-25-generic 2.6.35-22-generic uname uname -r
|
z****t 发帖数: 1090 | 49 en 不错。
oh my god, 已经过了 update-initramfs 了! 就是停在processing triggers for python support...
【在 y***d 的大作中提到】 : 把这两个 uname* 删除了,为安全起见可能 boot 下的也要删,然后 bootchart 删除 : 重装都行,随意
|
y***d 发帖数: 2330 | 50 怎么又扯出个 python,你还是重装得了,比这快 10 倍以上
for python support...
【在 z****t 的大作中提到】 : en 不错。 : oh my god, 已经过了 update-initramfs 了! 就是停在processing triggers for python support... :
|
|
|
z****t 发帖数: 1090 | 51 great! 成功重装安装bootchart!
然后试着执行了一下 update-manager 所有更新全部正常安装!
太激动了 非常感谢ylsdd还有各位大侠!!
for python support...
【在 z****t 的大作中提到】 : en 不错。 : oh my god, 已经过了 update-initramfs 了! 就是停在processing triggers for python support... :
|
z****t 发帖数: 1090 | 52 每次安装最后都有这一句 。 你是说重装后就没有python了?
【在 y***d 的大作中提到】 : 怎么又扯出个 python,你还是重装得了,比这快 10 倍以上 : : for python support...
|
y***d 发帖数: 2330 | 53 我以为是又卡主了
【在 z****t 的大作中提到】 : 每次安装最后都有这一句 。 你是说重装后就没有python了?
|
n*****t 发帖数: 22014 | 54 # grep "uname -r" /var/lib/dpkg/info/*
look look which script has problem
for python support...
【在 z****t 的大作中提到】 : en 不错。 : oh my god, 已经过了 update-initramfs 了! 就是停在processing triggers for python support... :
|
z****t 发帖数: 1090 | 55 现在就是只能留着那个bootchart了 有点搞笑 等提个bootchart的bug
很爽, 虽然是在各位大侠的帮助下, 但成功解决了一个不能网上找到答案的问题,
还是小有成就感。 这几年虽然一直用ubuntu, 但太易用了,就是用用而已, 少去
探究深层linux的工作方式。 现在看来以后还要多了解了解。 多逛本版,多学习! |
z****t 发帖数: 1090 | 56 对 我刚在也想 不如看看哪些脚本里有这句
但没有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/dpkg/info/makedev.postinst:kern_rev1=`uname -r | sed -e 's@^\([^.]*
\)\..*@\1@'`
/var/lib/dpkg/info/makedev.postinst:kern_rev2=`uname -r | sed -e 's@^[^.]*\.
\([^.]*\)\..*@\1@'`
/var/lib/dpkg/info/virtualbox-3.2.postinst: if [ ! -f /lib/modules/`uname
-r`/misc/vboxdrv.ko ];
then
/var/lib/dpkg/info/virtualbox-3.2.templates: by 'uname -r') and execute
/var/lib/dpkg/info/virtualbox-3.2.templates: 'uname -r' herausfinden kö
nnen) und führen Sie
danach
【在 n*****t 的大作中提到】 : # grep "uname -r" /var/lib/dpkg/info/* : look look which script has problem : : for python support...
|
n*****t 发帖数: 22014 | 57 不一定是 bootchart, 有可能是 dependence。
另外那个 $2 比较可疑,不知道 caller 传过来的是什么东西,如果有兴趣可以加个
echo 看看。
不过搞定了就算了,没啥好玩的,LOL
-9
uname
【在 z****t 的大作中提到】 : 对 我刚在也想 不如看看哪些脚本里有这句 : 但没有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`);
|
z****t 发帖数: 1090 | 58 有可能 可能是bootchart.postinst中调用 我昨天也想到可以加入这个echo看
看
en 等那天想折腾了再看看 反正有解决方案 也不用怕什么 hehe
【在 n*****t 的大作中提到】 : 不一定是 bootchart, 有可能是 dependence。 : 另外那个 $2 比较可疑,不知道 caller 传过来的是什么东西,如果有兴趣可以加个 : echo 看看。 : 不过搞定了就算了,没啥好玩的,LOL : : -9 : uname
|