| zikang 的个人资料Zi Kang's space照片日志列表 | 帮助 |
|
9月23日 RPM Commands 1.安装一个包 # rpm -ivh 2.升级一个包 # rpm -Uvh 3.移走一个包 # rpm -e 4.安装参数 --force 即使覆盖属于其它包的文件也强迫安装 --nodeps 如果该RPM包的安装依赖其它包,即使其它包没装,也强迫安装。 5.查询一个包是否被安装 # rpm -q 6.得到被安装的包的信息 # rpm -qi 7.列出该包中有哪些文件 # rpm -ql 8.列出服务器上的一个文件属于哪一个RPM包 # rpm -qf 9.可综合好几个参数一起用 # rpm -qil 10.列出所有被安装的rpm package # rpm -qa 11.列出一个未被安装进系统的RPM包文件中包含有哪些文件? # rpm -qilp 9月18日 GDM无法写入您的认证文件,这可能意味着您的磁盘没有空间或工作目录没有读权限这个错误信息会导致Ubuntu无法进入图形界面,解决步骤: 1、开机按Esc进入GRUB 2、选择Recovery恢复模式 3、用Root身份进入命令行模式 4、到根目录用ls -l 查看 drwxrwxrwt 20 root root 4096 2009-09-18 02:16 tmp 5、执行chmod 777 /tmp 6、再用ls -l 查看 drwxrwxrwx 20 root root 4096 2009-09-18 02:18 tmp 9月8日 “subprocess pre-removal script returned error″ in SynapticYou may fail to install Symphony .deb package due to broken dependencies found in synaptic manager, You attempt to fix the broken dependency in synaptic, but getting error "subprocess pre-removal script returned error " The following command seems not working either. ubuntu@ubuntu-desktop:~$ sudo dpkg --force all -r symphony-nl1 (Reading database ... 112497 files and directories currently installed.) Removing symphony-nl1 ... /var/lib/dpkg/info/symphony-nl1.prerm: line 4: /opt/ibm/lotus/Symphony/symphony-nl1_uninstall.log: No such file or directory To workaround this, 1.Quit Synaptic and navigate to the folder /var/lib/dpkg/ 2.Copy the file status to desktop, 3.Edit the status with Gedit or any text editor, Search by the name of the package to be removed, Remove the whole section if you found 4.Open a terminal session, copy the modified status back to original place. ubuntu@ubuntu-desktop:~/Desktop$ sudo mv status /var/lib/dpkg/ 5.Launch Synaptic ubuntu@ubuntu-desktop:~/Desktop$ sudo synaptic Link to The _khAttAm_ blog |
|
|