输入代码
sudo apt-get update
sudo apt-get install module-assistant build-essential
sudo apt-get install fakeroot dh-make debconf libstdc++5 linux-headers-$(uname -r)
之后
jimmieking@jimmieking-laptop:~/Desktop$ sudo apt-get update
忽略
http://archive.ubuntu.org.cn edgy Release.gpg
忽略
http://archive.ubuntu.org.cn edgy/main Translation-zh_CN
忽略
http://archive.ubuntu.org.cn edgy/restricted Translation-zh_CN
忽略
http://archive.ubuntu.org.cn edgy/universe Translation-zh_CN
忽略
http://archive.ubuntu.org.cn edgy/multiverse Translation-zh_CN
忽略
http://archive.ubuntu.org.cn edgy Release
忽略
http://mirror.lupaworld.com dapper Release.gpg
忽略
http://archive.ubuntu.org.cn edgy/main Packages
忽略
http://mirror.lupaworld.com dapper/main Translation-zh_CN
忽略
http://archive.ubuntu.org.cn edgy/restricted Packages
忽略
http://archive.ubuntu.org.cn edgy/universe Packages
忽略
http://archive.ubuntu.org.cn edgy/multiverse Packages
忽略
http://mirror.lupaworld.com dapper/restricted Translation-zh_CN
命中
http://archive.ubuntu.org.cn edgy/main Packages
命中
http://archive.ubuntu.org.cn edgy/restricted Packages
忽略
http://mirror.lupaworld.com dapper/universe Translation-zh_CN
命中
http://archive.ubuntu.org.cn edgy/universe Packages
忽略
http://mirror.lupaworld.com dapper/multiverse Translation-zh_CN
命中
http://archive.ubuntu.org.cn edgy/multiverse Packages
获取:1
http://cn.archive.ubuntu.com dapper Release.gpg [189B]
忽略
http://cn.archive.ubuntu.com dapper/main Translation-zh_CN
忽略
http://mirror.lupaworld.com dapper Release
忽略
http://mirror.lupaworld.com dapper/main Packages
忽略
http://mirror.lupaworld.com dapper/restricted Packages
忽略
http://mirror.lupaworld.com dapper/universe Packages
忽略
http://mirror.lupaworld.com dapper/multiverse Packages
命中
http://mirror.lupaworld.com dapper/main Packages
命中
http://mirror.lupaworld.com dapper/restricted Packages
命中
http://mirror.lupaworld.com dapper/universe Packages
命中
http://mirror.lupaworld.com dapper/multiverse Packages
获取:2
http://archive.ubuntu.com edgy Release.gpg [191B]
忽略
http://archive.ubuntu.com edgy/main Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper/restricted Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper/universe Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper/multiverse Translation-zh_CN
获取:3
http://cn.archive.ubuntu.com dapper-security Release.gpg [191B]
忽略
http://cn.archive.ubuntu.com dapper-security/main Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper-security/restricted Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper-security/universe Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper-security/multiverse Translation-zh_CN
获取:4
http://cn.archive.ubuntu.com dapper-updates Release.gpg [191B]
忽略
http://cn.archive.ubuntu.com dapper-updates/main Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper-updates/restricted Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper-updates/universe Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper-updates/multiverse Translation-zh_CN
获取:5
http://cn.archive.ubuntu.com dapper-backports Release.gpg [191B]
忽略
http://archive.ubuntu.com edgy/restricted Translation-zh_CN
命中
http://archive.ubuntu.com edgy/universe Translation-zh_CN
忽略
http://archive.ubuntu.com edgy/multiverse Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper-backports/main Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper-backports/restricted Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper-backports/universe Translation-zh_CN
忽略
http://cn.archive.ubuntu.com dapper-backports/multiverse Translation-zh_CN
命中
http://cn.archive.ubuntu.com dapper Release
命中
http://cn.archive.ubuntu.com dapper-security Release
命中
http://cn.archive.ubuntu.com dapper-updates Release
获取:6
http://archive.ubuntu.com edgy-security Release.gpg [191B]
忽略
http://archive.ubuntu.com edgy-security/main Translation-zh_CN
忽略
http://archive.ubuntu.com edgy-security/restricted Translation-zh_CN
忽略
http://archive.ubuntu.com edgy-security/universe Translation-zh_CN
忽略
http://archive.ubuntu.com edgy-security/multiverse Translation-zh_CN
获取:7
http://archive.ubuntu.com edgy-updates Release.gpg [191B]
忽略
http://archive.ubuntu.com edgy-updates/main Translation-zh_CN
忽略
http://archive.ubuntu.com edgy-updates/restricted Translation-zh_CN
忽略
http://archive.ubuntu.com edgy-updates/universe Translation-zh_CN
命中
http://cn.archive.ubuntu.com dapper-backports Release
忽略
http://archive.ubuntu.com edgy-updates/multiverse Translation-zh_CN
获取:8
http://archive.ubuntu.com edgy-proposed Release.gpg [191B]
忽略
http://archive.ubuntu.com edgy-proposed/main Translation-zh_CN
忽略
http://archive.ubuntu.com edgy-proposed/restricted Translation-zh_CN
忽略
http://archive.ubuntu.com edgy-proposed/universe Translation-zh_CN
命中
http://cn.archive.ubuntu.com dapper/main Packages
命中
http://cn.archive.ubuntu.com dapper/restricted Packages
命中
http://cn.archive.ubuntu.com dapper/universe Packages
忽略
http://archive.ubuntu.com edgy-proposed/multiverse Translation-zh_CN
获取:9
http://archive.ubuntu.com edgy-backports Release.gpg [191B]
忽略
http://archive.ubuntu.com edgy-backports/main Translation-zh_CN
忽略
http://archive.ubuntu.com edgy-backports/restricted Translation-zh_CN
忽略
http://archive.ubuntu.com edgy-backports/universe Translation-zh_CN
命中
http://cn.archive.ubuntu.com dapper/multiverse Packages
命中
http://cn.archive.ubuntu.com dapper/main Sources
命中
http://cn.archive.ubuntu.com dapper/restricted Sources
命中
http://cn.archive.ubuntu.com dapper/universe Sources
命中
http://cn.archive.ubuntu.com dapper/multiverse Sources
命中
http://cn.archive.ubuntu.com dapper-security/main Packages
命中
http://cn.archive.ubuntu.com dapper-security/restricted Packages
命中
http://cn.archive.ubuntu.com dapper-security/universe Packages
命中
http://cn.archive.ubuntu.com dapper-security/multiverse Packages
忽略
http://archive.ubuntu.com edgy-backports/multiverse Translation-zh_CN
命中
http://archive.ubuntu.com edgy Release
命中
http://archive.ubuntu.com edgy-security Release
命中
http://archive.ubuntu.com edgy-updates Release
命中
http://archive.ubuntu.com edgy-proposed Release
命中
http://cn.archive.ubuntu.com dapper-security/main Sources
命中
http://archive.ubuntu.com edgy-backports Release
命中
http://archive.ubuntu.com edgy/main Packages
命中
http://archive.ubuntu.com edgy/restricted Packages
命中
http://archive.ubuntu.com edgy/universe Packages
命中
http://archive.ubuntu.com edgy/multiverse Packages
命中
http://cn.archive.ubuntu.com dapper-security/restricted Sources
命中
http://cn.archive.ubuntu.com dapper-security/universe Sources
命中
http://cn.archive.ubuntu.com dapper-security/multiverse Sources
命中
http://cn.archive.ubuntu.com dapper-updates/main Packages
命中
http://cn.archive.ubuntu.com dapper-updates/restricted Packages
忽略
http://cn.archive.ubuntu.com dapper-updates/universe Packages
命中
http://cn.archive.ubuntu.com dapper-updates/multiverse Packages
命中
http://cn.archive.ubuntu.com dapper-updates/main Sources
命中
http://cn.archive.ubuntu.com dapper-updates/restricted Sources
命中
http://cn.archive.ubuntu.com dapper-updates/universe Sources
命中
http://archive.ubuntu.com edgy/main Sources
命中
http://archive.ubuntu.com edgy/restricted Sources
命中
http://archive.ubuntu.com edgy/universe Sources
命中
http://archive.ubuntu.com edgy/multiverse Sources
命中
http://archive.ubuntu.com edgy-security/main Packages
命中
http://archive.ubuntu.com edgy-security/restricted Packages
命中
http://archive.ubuntu.com edgy-security/universe Packages
命中
http://archive.ubuntu.com edgy-security/multiverse Packages
命中
http://archive.ubuntu.com edgy-security/main Sources
命中
http://cn.archive.ubuntu.com dapper-updates/multiverse Sources
命中
http://cn.archive.ubuntu.com dapper-backports/main Packages
命中
http://archive.ubuntu.com edgy-security/restricted Sources
命中
http://cn.archive.ubuntu.com dapper-backports/restricted Packages
命中
http://cn.archive.ubuntu.com dapper-backports/universe Packages
命中
http://cn.archive.ubuntu.com dapper-backports/multiverse Packages
命中
http://cn.archive.ubuntu.com dapper-backports/main Sources
命中
http://cn.archive.ubuntu.com dapper-backports/restricted Sources
命中
http://cn.archive.ubuntu.com dapper-backports/universe Sources
命中
http://cn.archive.ubuntu.com dapper-backports/multiverse Sources
获取:10
http://cn.archive.ubuntu.com dapper-updates/universe Packages [24.8kB]
99% [10 Packages gzip 0] [正在连接 security.ubuntu.com (82.211.81.138)] [
gzip: stdin: not in gzip format
错误
http://cn.archive.ubuntu.com dapper-updates/universe Packages
子进程 gzip 返回了一个错误号 (1)
命中
http://archive.ubuntu.com edgy-security/universe Sources
命中
http://archive.ubuntu.com edgy-security/multiverse Sources
命中
http://archive.ubuntu.com edgy-updates/main Packages
命中
http://archive.ubuntu.com edgy-updates/restricted Packages
命中
http://archive.ubuntu.com edgy-updates/universe Packages
命中
http://archive.ubuntu.com edgy-updates/multiverse Packages
命中
http://archive.ubuntu.com edgy-updates/main Sources
命中
http://archive.ubuntu.com edgy-updates/restricted Sources
命中
http://archive.ubuntu.com edgy-updates/universe Sources
命中
http://archive.ubuntu.com edgy-updates/multiverse Sources
命中
http://archive.ubuntu.com edgy-proposed/main Packages
命中
http://archive.ubuntu.com edgy-proposed/restricted Packages
命中
http://archive.ubuntu.com edgy-proposed/universe Packages
命中
http://archive.ubuntu.com edgy-proposed/multiverse Packages
命中
http://archive.ubuntu.com edgy-proposed/main Sources
命中
http://archive.ubuntu.com edgy-proposed/restricted Sources
命中
http://archive.ubuntu.com edgy-proposed/universe Sources
命中
http://archive.ubuntu.com edgy-proposed/multiverse Sources
命中
http://archive.ubuntu.com edgy-backports/main Packages
命中
http://archive.ubuntu.com edgy-backports/restricted Packages
命中
http://archive.ubuntu.com edgy-backports/universe Packages
命中
http://archive.ubuntu.com edgy-backports/multiverse Packages
命中
http://archive.ubuntu.com edgy-backports/main Sources
命中
http://archive.ubuntu.com edgy-backports/restricted Sources
命中
http://archive.ubuntu.com edgy-backports/universe Sources
命中
http://archive.ubuntu.com edgy-backports/multiverse Sources
错误
http://security.ubuntu.com dapper-security Release.gpg
无法连接上 security.ubuntu.com:80 (82.211.81.138),连接超时
忽略
http://security.ubuntu.com dapper-security/main Translation-zh_CN
忽略
http://security.ubuntu.com dapper-security/restricted Translation-zh_CN
忽略
http://security.ubuntu.com dapper-security/universe Translation-zh_CN
忽略
http://security.ubuntu.com dapper-security/multiverse Translation-zh_CN
下载 10B,耗时 3m1s (0B/s)
无法下载
http://security.ubuntu.com/ubuntu/dists ... elease.gpg 无法连接上 security.ubuntu.com:80 (82.211.81.138),连接超时
无法下载
http://cn.archive.ubuntu.com/ubuntu/dis ... ackages.gz 子进程 gzip 返回了一个错误号 (1)
正在读取软件包列表... 完成
W: 有一些索引文件不能下载,它们可能被忽略了,也可能转而使用了旧的索引文件。
jimmieking@jimmieking-laptop:~/Desktop$ sudo apt-get install module-assistant build-essential
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
Reading state information... 完成
将会安装下列额外的软件包:
dpkg-dev g++ g++-4.1 libc6 libc6-dev libc6-i686 libstdc++6-4.1-dev
linux-libc-dev
建议安装的软件包:
debian-keyring gcc-4.1-doc lib64stdc++6 glibc-doc manpages-dev
libstdc++6-4.1-doc
下列【新】软件包将被安装:
build-essential dpkg-dev g++ g++-4.1 libc6-dev libstdc++6-4.1-dev
linux-libc-dev module-assistant
下列的软件包将被升级:
libc6 libc6-i686
共升级了 2 个软件包,新安装了 8 个软件包,要卸载 0 个软件包,有 221 个软件未被升级。
需要下载 8014kB/13.3MB 的软件包。
解压缩后会消耗掉 30.8MB 的额外空间。
您希望继续执行吗?[Y/n]y
中止执行。
jimmieking@jimmieking-laptop:~/Desktop$
创建deb包
代码:
sudo ln -sf bash /bin/sh
bash ati-driver-installer-8.33.6-x86.x86_64.run --buildpkg Ubuntu/edgy
sudo ln -sf dash /bin/sh
jimmieking@jimmieking-laptop:~/Desktop$ sudo ln -sf bash /bin/sh
jimmieking@jimmieking-laptop:~/Desktop$ bash ati-driver-installer-8.33.6-x86.x86_64.run --buildpkg Ubuntu/edgy
Creating directory fglrx-install
Verifying archive integrity... All good.
Uncompressing ATI Proprietary Linux Driver-8.33.6...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
==================================================
ATI Technologies Linux Driver Installer/Packager
==================================================
Generating package: Ubuntu/edgy
./packages/Ubuntu/ati-packager.sh: line 56: dpkg-architecture: command not found
Error: unsupported architecture:
Removing temporary directory: fglrx-install
jimmieking@jimmieking-laptop:~/Desktop$ sudo ln -sf dash /bin/sh
jimmieking@jimmieking-laptop:~/Desktop$
为什么有些软件不能下载,驱动也是下在桌面上的。