LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1026|回复: 9

How to install a software?

[复制链接]
发表于 2009-7-15 18:49:35 | 显示全部楼层 |阅读模式
I am Chinese and my English is not good.Here is my problem.
I just install Ubuntu in my computer.Now I find I cant not use pinyin with it.So I want to install a software of pinyin.But I can't do it.That's why I use English.I decide to finish it whitout my notebook whit Vista.

I want to install a software named sun-pinyin.Here is the lesson on internet:

Sun拼音编译安装:
    去http://mentors.debian.net/debian/pool/main/s/sunpinyin/ 把三个包包下下来。
    $ dpkg-source -x sunpinyin_1.0~hg20090201-1.dsc
    $ cd sunpinyin-1.0~hg20090201/
    $ sudo dpkg-buildpackage
    非常简单咩?

    最后得到:

    iiimf-le-sunpinyin-chinese_1.0~hg20090201-1_i386.deb
    scim-sunpinyin_1.0~hg20090201-1_i386.deb
    sunpinyin-data-be_1.0~hg20090201-1_all.deb
    sunpinyin-data-le_1.0~hg20090201-1_all.deb


    四个deb包。其中scim开头那个是scim用的,sunpinyin-data-le开头那个是x86这样 little-endian的平台用的。安装它们两个就可以了。



I have download 三个包包.Then I follow the lesson to input $ dpkg-source -x sunpinyin_1.0~hg20090201-1.dsc

Re:The program 'dpkg-source' is currently not installed.  You can install it by typing:
sudo apt-get install dpkg-dev
bash: dpkg-source: command not found


What's the problem?

I input sudo apt-get install dpkg-dev
Re:正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
现在没有可用的软件包 dpkg-dev,但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃,
或者只能在其他发布源中找到
E: 软件包 dpkg-dev 还没有可供安装的候选者

But problem is not solve.

Please tell me what's the problem.Thanks

PSlase answer me by chinese and please do not judge my English.
发表于 2009-7-16 05:05:58 | 显示全部楼层
Have you installed scim in you computer and is you locale simplified Chinese?
If so, you should be able to input Chinese with scim.
Try to install im-switch with command
sudo apt-get install im-switch
and then run
im-switch -s scim
If you're not sure if scim has been installed, run
dpkg -l scim-pinyin
to check if scim and pinyin module(scim-pinyin) has been installed.  You just need to check scim-pinyin since scim-pinyin depends on scim.
Then restart X when you finished all above.  You should be able to use scim then.
Show your problem more clearly if you still have problem.  You can open a terminal in X, type "scim" and show us the output on the terminal if scim cannot be started correctly.   Ubuntu and debian support Chinese very well.

=============================
OK, back to your problem, it seems that the package is replaced.  But I have found deb pack of "dpkg-dev" in mirror of ubuntu.  Try to update your database with
sudo apt-get update
and try again.
回复 支持 反对

使用道具 举报

发表于 2009-7-16 09:17:19 | 显示全部楼层
apt-get install scim-pinyin -y
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-16 11:00:39 | 显示全部楼层
laah@laah-desktop:~$ sudo apt-get install im-switch
[sudo] password for laah:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树      
正在读取状态信息... 完成      
im-switch 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 51 个软件未被升级。
laah@laah-desktop:~$ im-switch -s scim
Please install following packages:
  "( scim-anthy or scim-canna or scim-chewing or scim-pinyin or scim-hangle or scim-prime or scim-skk or scim-tables-additional or scim-m17n or scim-uim or scim-tables-ja or scim-tables-ko or scim-tables-zh )" .
laah@laah-desktop:~$ dpkg -l scim-pinyin
期望状态=未知(u)/安装(i)/删除(r)/清除(p)/保持(h)
| 当前状态=未(n)/已安装(i)/仅存配置(c)/仅解压缩(U)/配置失败(F)/不完全安装(H)/触发器等待(W)/触发器未决(T)
|/ 错误?=(无)/保持(H)/须重装(R)/两者兼有(X) (状态,错误:大写=故障)
||/ 名称         版本         简介
+++-==============-==============-============================================
un  scim-pinyin    <无>          (无相关介绍)


I think I have not do it successful yet......
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-7-16 11:02:02 | 显示全部楼层
3L:


laah@laah-desktop:~$ apt-get install scim-pinyin -y
E: 无法打开锁文件 /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
回复 支持 反对

使用道具 举报

发表于 2009-7-16 11:15:17 | 显示全部楼层
楼主是否安装了中文语言包?去language选项看看中文是否安装,如果没有先安装,安装完应该可以输入中文了。至于sun-pinyin在debian下依赖关系有点问题ubuntu下还是可以的。
回复 支持 反对

使用道具 举报

发表于 2009-7-16 13:16:31 | 显示全部楼层
Post by laah;2006659
3L:


laah@laah-desktop:~$ apt-get install scim-pinyin -y
E: 无法打开锁文件 /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


sudo apt-get install scim-pinyin -y
回复 支持 反对

使用道具 举报

发表于 2009-7-16 13:52:42 | 显示全部楼层
这种问题的话用apt-get 下载不了的可以用新立得软件包管理器看一下能不能找到,如果不能找到的话就换个源:/etc/apt/sources.list






laah@laah-desktop:~$ apt-get install scim-pinyin -y
E: 无法打开锁文件 /var/lib/dpkg/lock - open (13 Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?


这个的话有两种情况:一是你不是用sudo 或用root运行的。二是你已经运行了另一个apt-get或是开着新立得软件包管理器
回复 支持 反对

使用道具 举报

发表于 2009-7-16 13:56:16 | 显示全部楼层
dpkg-dev
这个包可以到ubuntu package网站上找,或是debian package的网站上找。
回复 支持 反对

使用道具 举报

发表于 2009-7-16 19:23:47 | 显示全部楼层
明白的提示就是没有安装scim-pinyin,然后建议你安装Please install following packages:
"( scim-anthy or scim-canna or scim-chewing or scim-pinyin or scim-hangle or scim-prime or scim-skk or scim-tables-additional or scim-m17n or scim-uim or scim-tables-ja or scim-tables-ko or scim-tables-zh )" .
你照着做就是啊,linux首先要自己动手的。

用root执行
#apt-get install scim-pinyin -y
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表