@songying
2018-03-03T16:47:19.000000Z
字数 4267
阅读 1414
software
sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
sudo gedit /etc/apt/sources.list
# deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse
sudo apt-get update
sudo apt-get upgrade
sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/ //添加源
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add - //导入公匙
sudo apt-get update //更新源
sudo apt-get install google-chrome-stable
参考: 在Ubuntu 16.04 安装sogou 输入法详细讲解
0. 配置fcitx
sudo add-apt-repository ppa:fcitx-team/nightly //添加源
sudo apt-get update
sudo apt-get install fcitx
sudo apt-get install -f //若此时出现依赖错误,需要执行该命令
sudo apt-get install fcitx-config-gtk
sudo apt-get install fcitx-table-all
sudo apt-get install im-switch
1. 下载搜狗拼音法安装包
2. 输入:sudo dpkg -i sogoupinyin_2.1.0.0086_amd64.deb
此时会有错误,说明部分依赖没有安装
3. 输入:sudo apt --fix-broken install
来解决依赖包问题
4. 输入:sudo dpkg -i sogoupinyin_2.1.0.0086_amd64.deb
安装
5. 在系统设置-->Language Support 将Keyboard input method system”设置为fcitx;
6. 重启生效。
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
chsh -s /bin/zsh
最后,注销重新登录生效。
主题建议为:ys
sudo add-apt-repository ppa:webupd8team/atom
sudo apt-get update
sudo apt-get install atom
sudo add-apt-repository 'deb https://typora.io linux/'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys BA300B7755AFCFAE
sudo apt update
sudo apt install typora
sudo apt-get install mysql-server mysql-client
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
切换回python2.7
sudo update-alternatives --config python
sudo apt-get install python3-pip //安装pip
更改pip的源
在.pip/pip.conf文件中写入如下内容(文件夹不存在可以建立):
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
tar -xvzf tar包
cd 包/bin
./pycharm.sh
rm -rf ~/.Pycharm*/ ~/Download/pycharm-*/
sudo apt-get install shutter
Sub-process /usr/bin/dpkg returned an error code (1)
安装java如果使用oracle-java7-installer就会一起出错,dpkg错误:
ImportError: No module named 'ConfigParser'
dpkg: error processing package python-samba (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of samba-common-bin:
samba-common-bin depends on python-samba; however:
Package python-samba is not configured yet.
dpkg: error processing package samba-common-bin (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
E: Sub-process /usr/bin/dpkg returned an error code (1)
解决方案:
$ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old //现将info文件夹更名
$ sudo mkdir /var/lib/dpkg/info //再新建一个新的info文件夹
$ sudo apt-get update
apt-get -f install
$ sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old//执行完上一步操作后会在新的info文件夹下生成一些文件,现将这些文件全部移到info_old文件夹下
$ sudo rm -rf /var/lib/dpkg/info //把自己新建的info文件夹删掉
$ sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info //把以前的info文件夹重新改回名字
[dpkg:处理 xxx (--configure)时出错解决办法]
[Sub-process /usr/bin/dpkg returned an error code (1)的解决方法]
皮皮blog
从Fiddler上下载linux下的安装包,然后解压。
安装momo
sudo apt-get install mono-complete
启动Fiddler
mono Fiddler.exe
sudo apt-get install python3-dev libmysqlclient-dev
sudo pip install mysqlclient