最漂亮最好用的Linux发行版:PearOS 官网: https://pearos.xyz/ 当然elementary os也还是可以,国产deepin也还是可以一战
无法识别android设备,执行adb devices提示no permissions (missing udev rules? user is in the plugdev group); see [http://developer.android.com/tools/device.html]
1).在下面路径创建规则文件
sudo vi /etc/udev/rules.d/xxx.rules
2).规则文件中输入以下内容保存
SUBSYSTEM=="usb", MODE="0660", GROUP="plugdev", SYMLINK+="android%n"
3).执行adb kill-server and adb start-server 后再次拔插手机即可
或者可能需执行哈:sudo chmod a+rx /etc/udev/rules.d/xxx.rules
sudo service udev restart
deb格式安装:
1、使用dpkg命令进行安装:sudo dpkg -i deb文件名
2、根据经验,通常情况下会报依赖关系的错误,我们可以使用以下的命令修复安装:sudo apt-get install -f
3、如果要卸载安装的应用我们通过“sudo dpkg -l”查看已经安装的软件,并找到自己的安装的软件名。
4、最后使用"sudo dpkg -r 软件名"进行卸载
rpm格式安装:
1 #rpm -i example.rpm 安装 example.rpm 包;
2 #rpm -iv example.rpm 安装 example.rpm 包并在安装过程中显示正在安装的文件信息;
3 #rpm -ivh example.rpm 安装 example.rpm 包并在安装过程中显示正在安装的文件信息及安装进度
替换当前Python版本:
1. echo alias python=python3 >> ~/.bashrc
2. source ~/.bashrc
3. python
linux安装deepin微信:https://gitee.com/stephenlovevicky/deepin-wine
https://blog.csdn.net/wangxinyao1997/article/details/105271919
编辑apt源:sudo vi /etc/apt/sources.list
编辑源执行sudo apt-get update 报没有key可尝试执行 sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6AF0E1940624A220 #此处6AF0E1940624A220需要是错误提示的key
aptitude比apt-get更善于解决依赖问题,可执行sudo apt-get install aptitude安装,安装好使用sudo aptitude install xxx
apt-get安装失败后可执行 sudo apt-get -f install sudo apt --fix-broken install 看尝试修复
删除软件 sudo apt autoremove udo apt remove xxxx 或者 使用sudo vi /var/lib/dpkg/status 命令,在打开的文件中找到相应的package状态,将其删除,然后保存即可解决
1、下载文件命令:
yum -y install wget
使用:wget http:www.xxx.com/file
2、sz、rz 上传下载工具命令:
yum install lrzsz
使用:sz file.zip ; rz
3、ssh安装
检查ssh是否安装:rpm -qa | grep ssh 或者(rpm -qa | grep openssh)
CentOS安装: yum install openssh-server
Ubuntu 安装: apt-get install ssh
验证查看 ssh是否启动: /etc/init.d/sshd status 或者(service sshd status)
Mac 上有一个「按空格键预览文件/目录的功能」,在 Ubuntu 里默认是没有这个功能的
sudo add-apt-repository ppa:gloobus-dev/gloobus-preview
sudo apt-get update
sudo apt install gnome-sushi
sudo apt-get install gloobus-preview gloobus-sushi
为了能够支持更多的文档文件,你还需要运行下面的命令安装unoconv:sudo apt-get install unoconv
===============================报错处理问题==========================================
dpkg: 处理软件包 sogoupinyin (--remove)时出错:
已安装 sogoupinyin 软件包 post-removal 脚本 子进程返回错误状态 2
dpkg: 出现过多错误,正在停止
原理:dpkg之所以能够对每个包的状态了如指掌,完全是因为dpkg数据库--->>/var/lib/dpkg/status
这个文本文件中记录了软件仓库中曾经安装过的软件包的安装状态。
所以,只需要改动这个文件就能够改变软件包的状态。
软件包的状态:
引用:
1、not-installed
The package is not installed on your system.
2、config-files
Only the configuration files of the package exist on the system.
3、half-installed
The installation of the package has been started, but not com-
pleted for some reason.
4、unpacked
The package is unpacked, but not configured.
5、half-configured
The package is unpacked and configuration has been started, but
not yet completed for some reason.
6、 triggers-awaited
The package awaits trigger processing by another package.
7、 triggers-pending
The package has been triggered.
8、 installed
The package is unpacked and configured OK.
以上请详细参考man dpkg
根据以上状态:half-installed和half-configured是常见的错误状态,不完全配置,或者不完全安装。
还需要注意的是:
软件包还有一个选择状态:
引用:
1、install
The package is selected for installation.
2、deinstall
The package is selected for deinstallation (i.e. we want to
remove all files, except configuration files).
3、purge The package is selected to be purged (i.e. we want to remove
everything, even configuration files).
最后组合起来的错误状态大概就有6种,安装、删除出错都会将软件包的状态标记成其中之一!
它们的状态都要被修改成:install ok installed ; deinstall ok not-installed或purge ok not-installed。
最后需要注意的是:
软件包除了处在not-install 的状态,其余状态都是有完整的描述的。
要将错误状态修改成installed状态,需要查看一下软件包的描述是否有。(这个一般是有的)
要将错误状态修改成not-install状态,需要删除软件包的描述,删除Section行下面的全部。(不要把别人的删掉)
例子:
引用:
Package: libexempi3
Status: purge ok half-installed
Priority: optional
Section: libs
Installed-Size: 748
Maintainer: Ubuntu Core Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: i386
Source: exempi
Version: 2.0.2-2
Depends: libc6 (>= 2.4), libexpat1 (>= 1.95.8), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.2.1)
Description: library to parse XMP metadata (Library)
Exempi is a library to parse XMP metadata as defined by the
specification.
.
XMP (Extensible Metadata Platform) facilitates embedding metadata in files
using a subset of RDF. Most notably XMP supports embedding metadata in PDF
and many image formats, though it is designed to support nearly any file type.
Original-Maintainer: Asheesh Laroia <asheesh@asheesh.org>
Homepage: [http://libopenraw.freedesktop.org/wiki/Exempi](http://libopenraw.freedesktop.org/wiki/Exempi)
显然这个状态是有错误的。只要修改成:
Package: libexempi3
Status: purge ok not-installed
Priority: optional
Section: libs
网友评论