博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
(转)ubuntu简单命令
阅读量:7071 次
发布时间:2019-06-28

本文共 3194 字,大约阅读时间需要 10 分钟。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
装机必备 !!!!   安装解码器、flashplayer、java虚拟机、微软字体 :
sudo apt-get install ubuntu-restricted-extras

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
安装、卸载软件:

自动搜索安装、卸载软件 :新立德软件包管理器    搜索名称   安装、卸载

或者

终端输入

sudo apt-get install  软件名称
=========================
 sudo -sh   
; 切换到 root 帐号:
安装软件 apt-get install softname1 softname2 softname3……
卸载软件 apt-get remove softname1 softname2 softname3……
卸载并清除配置 apt-get remove --purge softname1
更新软件信息数据库 apt-get update
进行系统升级 apt-get upgrade
搜索软件包 apt-cache search softname1 softname2 softname3……

安装deb软件包 dpkg -i xxx.deb

删除软件包 dpkg -r xxx.deb
连同配置文件一起删除 dpkg -r --purge xxx.deb
查看软件包信息 dpkg -info xxx.deb
查看文件拷贝详情 dpkg -L xxx.deb
查看系统中已安装软件包信息 dpkg -l
重新配置软件包 dpkg-reconfigure xxx

在使用完apt后,系统下载的deb包会留存在硬盘里,我们可以把它们删除安装文件,释放硬盘空间。

sudo apt-get clean

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

 修改系统更新源:

sudo gedit /etc/apt/sources.list

中国国内推荐!!!     常州服务器     (经我验证,速度超快)

deb http://ubuntu.cn99.com/ubuntu/ breezy main restricted universe multiverse

deb http://ubuntu.cn99.com/ubuntu/ breezy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ breezy-backports main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu-cn/ breezy main restricted universe multiverse
deb http://ubuntu.cn99.com/backports/ breezy-extras main restricted universe multiverse

 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

sudo apt-get install rar unrar   ;安装rar压缩、解压工具

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

sudo gedit /etc/fstab     更改ubuntu启动时的 检查分区情况
  对应的 fat&ntfs 分区设置   pass=0 即是不检查    可提高启动速度 !!

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

显卡驱动安装

feisty里面显卡驱动的安装也是相当简单的事情,进入“系统”->“系统管理”->“受限驱动管理器”

找到你的显卡,把那个框点成对号,会提示你安装显卡驱动,然后按照提示一步一步安装完毕,重启即可。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

在bash中提示符是通过一个环境变量$PS1指定的。用export $PS1查看现在的值,比较直观常用的提示符可以设定为export PS1=“[\u@\h \W]$”。其中\u代表用户名,\h代表主机名,\W代表当前工作目录的最后一层,如果是普通用户$则显示$,root用户显示#。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

运行更新时提示:
Fetched 5B in 1s (5B/s)
E: Could not get lock /var/lib/dpkg/lock - open (11 Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
e:无法获得锁/var/lib/dpkg/锁定open(11资源暂时无法获得E组): 无法锁定管理目录(/var/lib/dpkg/),是另一进程使用吗?

这个意思是 :  如果你在终端使用了apt,或者你打开了新德立,再运行添加和删除的话,是打不开的,三者只能运行一个.

is another process using it?  另一个进程在使用吗?   好像你已经开了三个其中一个了.

This is a major failure of your software management system. Please check for broken packages with synaptic, check the file permissions and correctness of the file '/etc/apt/sources.list' and reload the software information with: 'sudo apt-get update' and 'sudo apt-get install -f'

意思:  
这是一个重大的失败,你的软件管理系统. 请检查损坏的软件包突触, 查阅档案权限和正确性档案'/etc/apt/sources.list』及刷新软件的信息: '用sudoapt-getupdate'和'用sudoapt-getinstall-f'

这是一个依赖问题,首先检查/etc/apt/sources.list里面的源.请把zh-cn的源前面加个"#"号,表示忽略.

如果你装某个软件无法依赖检查,请你使用命令:用sudo apt-getupdate'和'用sudo apt-getinstall-f

比如这个JAVA是你在官方下载的DEB包,你用dpkg -i安装时出现错误,那你就用sudo apt-getinstall-f解决依赖关系,然后它会自动安装上JAVA.

建议使用"GDebi软件包安装程序,"系统自带的,那样它自会检查依赖性,并且可以看到所安装的文件路径

转载于:https://www.cnblogs.com/nniixl/archive/2007/12/04/981704.html

你可能感兴趣的文章
[jQuery]使用jQuery.Validate进行客户端验证(中级篇-上)——不使用微软验证控件的理由...
查看>>
C#中的Json的序列化和反序列化
查看>>
hdu3015(树状数组)
查看>>
oracle ora-12154 无法解析连接字符串
查看>>
行为的抽象即是接口(Interface)
查看>>
2013渣打科营编程马拉松赛样题
查看>>
XSS零碎指南
查看>>
分享一个SQLSERVER脚本(计算数据库中各个表的数据量和每行记录所占用空间)...
查看>>
ZStack中的编程技巧
查看>>
tcpdump -i eth0 -n -vvv src or dst port 443
查看>>
如何给你的Android 安装文件(APK)瘦身
查看>>
如何把SKYPE的发送消息由enter改为ctrl+enter?
查看>>
GitHub 基本常用知识解答
查看>>
一个有趣的算法题。。。
查看>>
spring - ioc和aop
查看>>
ifdef ANDROID总是不好用
查看>>
Linux 下修改Tomcat使用的JVM内存大小
查看>>
cfile fopen fopen_s win10下打开文件失败
查看>>
虚函数可不可以是内联函数
查看>>
据说看完这21个故事的人,30岁前都成了亿万富翁
查看>>