由买买提看人间百态

topics

全部话题 - 话题: uname
1 2 3 4 5 下页 末页 (共5页)
z****t
发帖数: 1090
1
再执行了一下删除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
2
标题是起着玩的,吸引眼球。 但还是头一次碰到问题网上找不到任何线索来解决了。

用了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 synt... 阅读全帖
z****t
发帖数: 1090
3
下面是我刚刚在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
4
对 我刚在也想 不如看看哪些脚本里有这句
但没有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/... 阅读全帖
z****t
发帖数: 1090
5
贴个从一最开始的错误 也许这个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 .... 阅读全帖
y***d
发帖数: 2330
6
interactive 的 shell 默认的还是 bash,但是,运行各种脚本时,默认的 shell 是
dash;建议你不要改这个(ls -l /bin/sh)
你碰到的这个问题,似乎本来是要让 uname -r 作为一个命令运行的,结果因为引号的
不对,或者 shell 的问题,导致 uname -r 直接作为结果字符串了。
你要挖一挖在哪个脚本里面运行的 uname -r,看看那里怎么写错了,找到解决办法后
报一个 bug。
z****t
发帖数: 1090
7
可能就是这样
$ 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
发帖数: 22014
8
bootchart 的 postinit/preinit 问题吧,俺现在没用 ubuntu,没法查。
uname -r 应该是用 ` 括起来,而不是 '
bash 的语法还可以是 $(uname -r),grep 一下,改改就行了。这个用 m$ 的重装不管
用的,表折腾了
z****t
发帖数: 1090
9
update-initramfs里面有下面几句 但看上去是对的
set_current_version()
{
if [ -f /boot/initrd.img-`uname -r` ]; then
version=`uname -r`
fi
}
z****t
发帖数: 1090
10
发现一个/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
y***d
发帖数: 2330
11
ls /var/lib/initramfs-tools
看看里面有没有 "uname -r" "uname" 样子的文件,如果有的话,删掉,然后再安装
bootchart 试试。

随便执行安装 又出来了
25-
22-
z****t
发帖数: 1090
12
果然有. 你是说试试重新安装还是删除? bootchart现在是installed的了
(因为删除一直不成功)
$ls /var/lib/initramfs-tools/
2.6.32-25-generic 2.6.35-22-generic uname uname -r
y***d
发帖数: 2330
13
ubuntu 默认的 shell 现在是 dash 了吧

uname
bash
spaces
y***d
发帖数: 2330
y***d
发帖数: 2330
15
“dpkg: version 'uname -r' has bad syntax: version string has embedded
spaces"
这个之前 log 说啥,可能也有帮助。

sda1.
z****t
发帖数: 1090
16
没看懂最后一个贴子。 那是个fix吗?
我刚怀疑是不是bootchart里用错了 但看了/etc/init/bootchart.conf 里面就没有
uname这个串。
N****w
发帖数: 21578
17
uname -r 到底是输出啥字符串?
z****t
发帖数: 1090
18
输出是对的
$uname -r
2.6.35-22-generic
V*E
发帖数: 1642
19
简单,format,
冲撞

uname
bash
spaces
y***d
发帖数: 2330
20
把这两个 uname* 删除了,为安全起见可能 boot 下的也要删,然后 bootchart 删除
重装都行,随意
n*****t
发帖数: 22014
21
# grep "uname -r" /var/lib/dpkg/info/*
look look which script has problem

for python support...
n*****t
发帖数: 22014
22
不一定是 bootchart, 有可能是 dependence。
另外那个 $2 比较可疑,不知道 caller 传过来的是什么东西,如果有兴趣可以加个
echo 看看。
不过搞定了就算了,没啥好玩的,LOL

-9
uname
C********g
发帖数: 9656
23
来自主题: ChinaNews版 - 技术贴:《什么叫意淫!?》zz



天”这是我成为党员的坚定信念。党的九十岁生日之际,重温党的光辉岁月和发展历史
,再一次集聚在党的身边,拥党、爱党、护党。党万岁!]]>





继承和发扬党的优良传统,坚定永远跟党走的信念,此竞赛意义重大。]]>



... 阅读全帖
E*V
发帖数: 17544
24
☆─────────────────────────────────────☆
nickmit (上海老姜) 于 (Wed Oct 27 01:52:51 2010, 美东) 提到:
先建个临时目录
# mkdir -p /tmp/ubuntu/maverick
没有 debootstrap 的先安装一下
# apt-get install debootstrap
然后构建基本系统,这里就用 10.10 吧,你也可以换 lucid
# debootstrap maverick /tmp/ubuntu/rootfs
基本设置一下
# chroot /tmp/ubuntu/rootfs
# mount -t proc none /proc
# mount -t devtmpfs none /dev
# mount -t devpts none /dev/pts
# mount -t sysfs none /sys
俺喜欢给 root 加个密码,sudo... 阅读全帖

发帖数: 1
25
墨西哥城:体验“令人意外”的礼貌文化
梅根·弗莱 (Megan Frye)
2017年 12月 21日
分享平台 Facebook
分享平台 Twitter
分享平台 Messenger
分享平台 电邮
分享
https://ichef-1.bbci.co.uk/news/624/cpsprodpb/17138/production/_99302549_
p05nzd07.jpg
在墨西哥城生活了六个月,我才第一次看到有人在公共场合发脾气。而发脾气的并不是
墨西哥人。
那是在一个工作日下班之后,我在一家喧闹的咖啡馆坐着,收银台旁边排起了很长的队
。突然,一个男人开始朝收银员叫嚷。"你这是想抢劫我!"他用西班牙语大吼,并不是
墨西哥口音。
他环顾咖啡馆,大声宣称自己给了收银员500比索,收银员却只找回200比索零钱。年轻
的收银员显得很难堪,而正在排队的人有的将目光转向自己的脚,有的则盯着他们面前
摆放的糕点。
墨西哥城:足够探索一生的城市
墨西哥令人困惑的"时间密码"
在墨西哥浪漫的亲吻小巷接吻
Image cop... 阅读全帖
w***w
发帖数: 1552
26
u-nas iv黑色版本,装个usb的wireless adapter杯具了。
新买了一个usb的无线网络适配器, 是realtek的,我按照debian上的步骤转了驱动,h
ttp://wiki.debian.org/rtl819x
中间有一步是
aptitude -t lenny-backports install linux-image-2.6-$(uname -r | sed 's,.*-,
,') firmware-realtek wireless-tools
当时也没多想,执行完了才发现杯具了。 执行uname -r,系统从2.6.26-686变成了2.6
.32-bpo.5-686,现在系统还是可以ssh上去,路径和权限是一团混乱啊。/sbin下面的命
令都必须指定路径到/sbin/xx才会执行。ssh登陆后,用sudo 执行# aptitude update
就产生一堆错误。
E: /root/.aptitude 可读但不可写;无法写入配置文件。
W: 由于文件系统为只读,因而无法使用文件锁/var/lib/dpkg/lock
E: 无法写入 /var/cache/ap
a***n
发帖数: 1616
27
来自主题: Java版 - [转载] JBuilder8只能装在rh上?
解决
cd Linux
vi ent_install.bin
uncomment following lines:
# glibc floating stack problem on Linux
if [ `uname -s` = Linux ]
then
case `uname -r` in
2.[456]*)
LD_ASSUME_KERNEL=2.2.5
export LD_ASSUME_KERNEL
;;
esac
fi
reference:
Linux shared libraries not found
When I try to run the install script I get messages as follows:
dirname: error while loading shared libraries: libc.so.6: cannot open shared
/bin/ls: error while loadin
b***d
发帖数: 186
28
来自主题: Linux版 - 不容易呀,一年没关机了
-bash-3.00$ uptime
3:48pm up 1000 day(s), 10:37, 1 user, load average: 1.16, 1.21, 1.27
-bash-3.00$ uname -a
SunOS xxxxxxx 5.10 Generic_125100-06 sun4u sparc SUNW,Sun-Fire-480R
bash-2.04$ uptime
3:58PM up 1014 days, 10:06, 1 user, load averages: 0.08, 0.02, 0.00
bash-2.04$ uname -a
FreeBSD xxxxxx 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Mon Jan 28 14:31:56 GMT
2002
呵呵,全是老古董.
w***w
发帖数: 1552
29
【 以下文字转载自 Hardware 讨论区 】
发信人: wxwxw (kk), 信区: Hardware
标 题: 装个无线usb adapter把u-nas iv的debian系统搞费了
发信站: BBS 未名空间站 (Tue Sep 28 17:07:40 2010, 美东)
u-nas iv黑色版本,装个usb的wireless adapter杯具了。
新买了一个usb的无线网络适配器, 是realtek的,我按照debian上的步骤转了驱动,h
ttp://wiki.debian.org/rtl819x
中间有一步是
aptitude -t lenny-backports install linux-image-2.6-$(uname -r | sed 's,.*-,
,') firmware-realtek wireless-tools
当时也没多想,执行完了才发现杯具了。 执行uname -r,系统从2.6.26-686变成了2.6
.32-bpo.5-686,现在系统还是可以ssh上去,路径和权限是一团混乱啊。/sbin下面的命
令都必须指定路径到/sbin/xx才
S*A
发帖数: 7142
30
atime is one field of the file inode. It is per file.
There are three times field of typical UNIX inode,
ctime: create time
mtime: modify time
atime: access time
You can use "stat" to access the atime.
e.g.
$ stat /tmp/abc
File: `/tmp/abc'
Size: 2444 Blocks: 8 IO Block: 4096 regular file
Device: 803h/2051d Inode: 5684 Links: 1
Access: (0600/-rw-------) Uid: ( 500/ uname) Gid: ( 500/ uname)
Context: unconfined_u:object_r:user_tmp_t:s0
Access: 2011-09-24 10... 阅读全帖
l*******G
发帖数: 1191
31
来自主题: Programming版 - makefile 里面那个-D flags的问题
-D is just a comment line way of defining flags
#define FLAGNAME
to be referenced in code with:
#if defined FLAGNAME
...work related to FLAGNAME ...
#endif
e.g. you can put the following in makefile:
#--------------
FORT := ifort
OS := $(shell uname -s | sed 's/[\/ ]/-/g')
OS := $(patsubst CYGWIN_%,CYGWIN,$(OS))
OS := $(patsubst MINGW%,MINGW,$(OS))
OS := $(patsubst sn%,UNICOS-sn,$(OS))
CPU := $(shell uname -m | sed 's/[\/ ]/-/g')
CPPFLAGS += -D$(shell echo ${OS} | tr "-" "_" | tr [a-z] [A-Z
d**********u
发帖数: 3371
32
来自主题: Programming版 - 问一个关于Android Java的问题
不太会java 看到一段code
这个 new OnClickListerner(){
}
在new之后定义了类型 这种写法在java中叫做什么 function object?
谢谢!
loginButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
if (checkPassword(uname.getText(), passwd.
getText())) {
Intent helloAndroidIntent = new
Intent(LoginScreen.this,
HelloAndroid.class);
... 阅读全帖
y*j
发帖数: 32
33
来自主题: Security版 - 高手救命:近日帐号被黑!
我在学校里面,收发 Email 都喜欢 ssh 到系
服务器上后用 pine。今日忽然发现有人用我的
用户名和密码登陆:黑客太牛了,居然知道我的
密码。而且,他从我的 .ssh 目录下知道我还
ssh 过其他地方,于是他一个一个登陆过去,
都知道用户名和密码!都不知道他是怎么弄的。
幸好他好象也没有干一些坏事情,例如删除文件
发 Email 之类的。下面是我的 .history
各位高手看看怎么回事,怎么解决。
cd .ssh
cat known_hosts
uname -a
w
wget another00.home.ro/ups
chmod +x ups
./ups
wget another00.home.ro/local1.tgz
cd local
tar -xzvf local1.tgz
cd local
./mem
id
./t
./prt
./su
ls
./brk
另一个服务器上的:
#+1093705127
uname -a
#+1093705131
cd .ssh
#+1093705144
cat /etc/hosts
#+1093705173
wget www.ge
c*****t
发帖数: 1879
34
Usually uname -a would report the cpu type (and hopefully the speed
as well).
uname -X reports the #of cpu's.
fpversion may be available on your machine. It can check the cpu
speed...
My suggestion to you if you really want to know more information
about your CPU is to download any system patches from Sun, unpack
them, and there are usually some scripts designed to detect many
system wide informations.
p*********r
发帖数: 23
35
a bit more informative commands on solaris:
/bin/uname -X
/usr/platform/`/bin/uname -i`/sbin/prtdiag
t*******l
发帖数: 421
36
uname -a
or try "man uname" for more information.
m**v
发帖数: 373
37
在step3要运行
ln -s /lib/modules/`uname -r`/ /lib/modules/`uname -r`/asterisk
这个是不是生成了loop?子目录连接到了父目录?
下一步运行depmod时候出现错误:
WARNING: Can't read module /lib/modules/2.6.34.1/asterisk/asterisk/asterisk/
asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/
asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/
asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/
asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/asterisk/2.6.34.1/2.6.
34.1/aste... 阅读全帖
D*******l
发帖数: 5462
38
转个
http://blog.chinaunix.net/space.php?uid=11226759&do=blog&id=207
Gentoo下建立DD-WRT交叉编译环境 (2009-03-12 18:49)
分类: Linux
用的是Gentoo Linux Kernel版本2.6.28.7
linyin@linyin ~ $ uname -a
Linux linyin 2.6.28.7 #1 Tue Mar 3 17:12:26 CST 2009 i686 VIA Samuel 2
CentaurHauls GNU/Linux
从DD-WRT官方网站下载Toolchains
地址:http://www.dd-wrt.com/dd-wrtv2/downloads/others/sourcecode/toolchains/gcc.3.4.4-broadcom-mipsel.tar.bz2
其中有如下几个版本:
all_toolchains_amd64.tar.bz2 For AMD64 CPU
gcc-3.3.5-openwrt.tar.bz2 ... 阅读全帖
l****o
发帖数: 2909
39
来自主题: Military版 - Computer Science world Rankings 2011
Computer Science & Information Systems Rankings 2011
Rank Title Country Academic Employer Citations Score
1 Massachusetts Institute of Technology (MIT) United States 100 94.1 58
85.6
2 Stanford University United States 91.4 81.7 73.5 83.1
3 University of Cambridge United Kingdom 77.8 100 47.9 75.5
4 University of California, Berkeley (UCB) United States 85.7 72.4 64.6
75.4
5 Harvard University United States 63.9 94.4 59.2 71.6
6 University of Oxford ... 阅读全帖
w**j
发帖数: 1032
40
http://listverse.com/2007/08/17/top-10-most-wicked-popes/
Out of the 266 Popes to have ruled the Catholic Church, ten in particular
stand out for their wickedness. This is a list of the ten with a description
of their errors and faults.
1. Liberius, reigned 352-66 [Catholic Encyclopaedia]
Pope Liberius is the first Pope not to be canonised a saint. He reigned
during the height of the Arian crisis during which a large majority of the
Church believed that Jesus was not God, but merely a man. The A... 阅读全帖
s****n
发帖数: 8912
s******8
发帖数: 7105
42
这里有说是16分一斤, 我从来没看到过几分钱的报道。
http://m.blogchina.com/blog/view/uname/jiuliyougancheng/bid/238
D**s
发帖数: 6361
43
中华统一促进党总裁,竹联帮大哥张安乐与反服贸学生呛声,他说:“你们也是中国人
” 台下学生大喊:“我们不是中国人! ” 张乐安又说:“但你们是中国人x出来的”
就在全场死寂的时候, 有人大喊:“我是我妈和美军偷生的,我不是中国人” 台下
顿时响起一片掌声,反服贸学生纷纷被他的机智折服了。
http://m.blogchina.com/blog/view/uname/baoliao/bid/2160850#
如题
Z****a
发帖数: 5434
44
uname 就露出原形了
t*******a
发帖数: 4055
45
来自主题: Military版 - 人民战争:墨西哥反转斗争纪实
人民战争:墨西哥反转斗争纪实
2015-9-4 19:26
0
160
原作者: Alfredo Acedo 来自: 国际政策中心美洲项目组
吕永岩按语:转基因在法律层面的雪崩从欧洲蔓延到北美。继欧洲苏格兰、德国立法禁
绝转基因种植之后,北美的墨西哥又传来立法禁绝转基因种植的消息,墨西哥成为无转
基因的国家,这对中国转基因利益集团实属致命一击。致命之一是法庭上确认了转基因
既不增产,又不安全。尤其是孟山都和先正达在法庭上承认转基因必须施用致癌农药草
甘膦并且认账转基因作物会造成基因污染;墨西哥管理机构证实转基因作物“不导致增
产”,并且“更昂贵”;墨西哥卫生部证实转基因玉米对人体是否会造成危害“没有经
过试验”,这就彻底颠覆了中国官学研商媒推销转基因的理由。其二是国际政策中心美
洲项目组积极推动此次立法禁绝,起到了中坚作用;而墨西哥人民出于对自身健康和环
境保护的考虑,积极参与斗争。这说明国际组织和北美人民对转基因已经深恶痛绝。其
三是墨西哥有立法禁绝转基因的基础,由于孟山都的黑金收买,墨西哥曾一度改变,但
经过人民拿起法律武器的控诉,迫使禁绝转基因的法律重新生效,这说明转基因在北美
... 阅读全帖

发帖数: 1
46
来自主题: Military版 - 墨西哥程序员实际上非常牛逼
Early years
De Icaza was born in Mexico City and studied Mathematics at the Universidad
Nacional Autonoma de México (UNAM), but never received a degree.[3] He came
from a family of scientists in which his father is a physicist and his
mother a biologist.[4] He started writing free software in 1992.
k***n
发帖数: 1557
47
来自主题: Military版 - 华为鸿蒙这么快就现行了
以前有个“麒麟操作系统”,也是吹的完全自主知识产权拳打微软脚踢苹果的神器,
结果UNAME-A一下就现出原形
哄蒙也是一样德性
l**j
发帖数: 13
48
不知道有没有人用过,我也刚看到,觉得还挺简单,看资金流入和整合的私募新闻还不错.
平时可以用来参考参考,不一定当真.
http://soft.datangcx.com/reg.asp?id=253523&uname=darkblueli
g******g
发帖数: 22
49
来自主题: Classified版 - $190转让19件孕妇服 (奥斯汀)
$190转让19件孕妇服:
Dresses: 3
Sweaters: 2
Shirts and blouses: 5
T-shirt: 1
Coat: 1
Dress pants: 2
Jeans: 1
Active pants: 1
Crop pants: 1
Shorts: 2
图片在
https://picasaweb.google.com/lh/sredir?uname=lydiachen1&target=ALBUM&id=
5639020985131744545&authkey=Gv1sRgCNGRguHntKOxHg&feat=email
本人1米64, 孕前体重约115磅。
我家住在德州奥斯汀,最好是local pick-up。
有意者请和我站内联系
1 2 3 4 5 下页 末页 (共5页)