使用apt-get remove (package) 删除。以hello 为例:
# sudo apt-get remove hello
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
hello
0 upgraded, 0 newly installed, 1 to remove and 245 not upgraded.
After this operation, 111 kB disk space will be freed.
Do you want to continue [Y/n]?
(Reading database ... 211551 files and directories currently installed.)
Removing hello ...
Processing triggers for man-db ...
Processing triggers for install-info ...
获取具有正确路径的源代码——它已被 Debian 化(也适用于 Ubuntu)
$ apt-get source hello
进入源码并为它构建一个二进制包
$ cd hello*
$ fakeroot debian/rules binary
然后安装新制作的二进制包:
$ sudo dpkg -i ../hello*deb
Selecting previously unselected package hello.
(Reading database ... 211546 files and directories currently installed.)
Unpacking hello (from ../hello_2.8-4_amd64.deb) ...
Setting up hello (2.8-4) ...
Processing triggers for install-info ...
Processing triggers for man-db ...
或者,从这里安装 Ubuntu(Debian) Python 3.4.1 二进制包:https://packages.debian.org/search?keywords=python3