关于A卡闭源驱动创建deb包的错误代码,实在是解决不了了,求助

声卡/显卡/打印机/USB设备等硬件问题(网卡问题请发上面的网卡板块)
回复
venq
帖子: 2
注册时间: 2010-12-03 21:21
送出感谢: 0
接收感谢: 0

关于A卡闭源驱动创建deb包的错误代码,实在是解决不了了,求助

#1

帖子 venq » 2013-02-23 23:48

使用的是Ubuntu 12.10

vanchile@ubuntu:~/catalyst$ sudo sh ./amd-driver-installer-catalyst-13.1-linux-x86.x86_64.run --buildpkg Ubuntu/quantal
Created directory fglrx-install.zUe1Qe
Verifying archive integrity... All good.
Uncompressing AMD Catalyst(TM) Proprietary Driver-9.012.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
=====================================================================
AMD Catalyst(TM) Proprietary Driver Installer/Packager
=====================================================================
Generating package: Ubuntu/quantal
Package build failed!
Package build utility output:
./packages/Ubuntu/ati-packager.sh: 294: ./packages/Ubuntu/ati-packager.sh: debclean: not found
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 2:9.012-0ubuntu1
dpkg-buildpackage: source changed by AMD: Advanced Micro Devices. <http://ati.amd.com/support/driver.html>
dpkg-source --before-build fglrx.DZi6MC
dpkg-buildpackage: host architecture i386
debian/rules build
#Create important strings
for i in 10fglrx \
dkms.conf \
fglrx.install \
fglrx-dev.install \
fglrx-dev.links \
fglrx-amdcccle.install \
fglrx.grub-gfxpayload \
fglrx.dirs \
fglrx.links \
fglrx.postinst \
fglrx.postrm \
fglrx.preinst \
fglrx.prerm \
overrides/fglrx; do \
sed -e "s|#PKGXMODDIR#|usr/lib/fglrx/xorg/modules|g" \
-e "s|#LIBDIR#|usr/lib|g" \
-e "s|#LIBDIR32#|usr/lib32|g" \
-e "s|#BINDIR#|usr/bin|g" \
-e "s|#SYSCONFDIR#|etc|g" \
-e "s|#MANDIR#|usr/share/man/man1|g" \
-e "s|#LDSOCONF#|usr/lib/fglrx/ld.so.conf|g" \
-e "s|#ALTLDSOCONF#|usr/lib/fglrx/alt_ld.so.conf|g" \
-e "s|#ALTPRIORITY#|1000|g" \
-e "s|#PXALTPRIORITY#|900|g" \
-e "s|#AUTOSTARTDIR#|etc/xdg/autostart|g" \
-e "s|#DATADIR#|usr/share|g" \
-e "s|#PKGDESKDIR#|usr/share/fglrx|g" \
-e "s|#PKGDATADIR#|usr/share/fglrx|g" \
-e "s|#PKGCONFIGDIR#|usr/lib/fglrx|g" \
-e "s|#PKGBINDIR#|usr/lib/fglrx/bin|g" \
-e "s|#PKGLIBDIR#|usr/lib/fglrx|g" \
-e "s|#PKGLIBDIR32#|usr/lib32/fglrx|g" \
-e "s|#PKGDRIVERSDIR#|usr/lib/fglrx/xorg|g" \
-e "s|#XORGEXTRA#|usr/lib/i386-linux-gnu/xorg/extra-modules|g" \
-e "s|#PKGEXTENSIONDIR#|usr/lib/fglrx/xorg|g" \
-e "s|#XORGEXTENSIONSDIR#|usr/lib/xorg/modules/extensions|g" \
-e "s|#DRIVERNAME#|fglrx|g" \
-e "s|#DRIVERDEVNAME#|fglrx-dev|g" \
-e "s|#DRIVERSRCNAME#||g" \
-e "s|#INCLUDEDIR#|usr/include|g" \
-e "s|#PKGLIBCONFDIR#|lib/fglrx|g" \
-e "s|#GRUBBLKLISTDIR#|usr/share/grub-gfxpayload-lists/blacklist|g" \
-e "s|#PKGXMODDIR#|usr/lib/fglrx/xorg/modules|g" \
-e "s|#PXDIR#|usr/lib/pxpress|g" \
-e "s|#PXDIR32#|usr/lib32/pxpress|g" \
-e "s|#PXXMODDIR#|usr/lib/pxpress/xorg/modules|g" \
-e "s|#PXDIRNAME#|pxpress|g" \
-e "s|#PXLIBDIR#|usr/lib/pxpress/lib|g" \
-e "s|#PXLIBDIR32#|usr/lib32/pxpress/lib|g" \
-e "s|#PXLDSOCONF#|usr/lib/pxpress/ld.so.conf|g" \
-e "s|#ALTPXLDSOCONF#|usr/lib/pxpress/alt_ld.so.conf|g" \
-e "s|#CVERSION#|9.012|g" \
-e "s|#SRCXARCH#|xpic|g" \
-e "s|#SRCARCH#|x86|g" \
-e "s|#SRCOTHERARCH#|x86_64|g" \
-e "s|#SRCLIBDIR#|lib|g" \
-e "s|#DEB_HOST_MULTIARCH#|i386-linux-gnu|g" \
-e "s|#OTHER_ARCH#|x86_64-linux-gnu|g" \
debian/$i.in > debian/$i; \
done
# remove exec bit on everything
find arch \
etc \
lib \
module \
usr \
xpic -type f | xargs chmod -x
find: `module': No such file or directory
# set executable on user apps
find arch/x86/usr/sbin \
arch/x86/usr/X11R6/bin \
usr/sbin/ -type f | xargs chmod a+x
# set exec bit on scripts
find lib etc debian -name "*.sh" -type f | xargs chmod +x
# set the permissions on the pxpress scripts
chmod 744 debian/pxpress/switch*
dh build
dh_testdir
dh_auto_configure
dh_auto_build
dh_auto_test
dh build
debian/rules binary
# refresh copyright file
cat debian/copyright_stub_0 > debian/copyright
cat usr/share/doc/fglrx/LICENSE.TXT >> debian/copyright
cat debian/copyright_stub_1 >> debian/copyright
#Steps that we can't easily represent in debhelper files or .in files yet
# Remove any libraries that may be caught by shell expansion
find . -name libGLE* | xargs rm -f
find . -name libEGL* | xargs rm -f
dh_installdirs -pfglrx
# Install the QT libraries
dh_install -pfglrx "arch/x86_64/usr/share/ati/lib" "usr/share/ati"
cp: cannot stat `debian/tmp/arch/x86_64/usr/share/ati/lib': No such file or directory
dh_install: cp -a debian/tmp/arch/x86_64/usr/share/ati/lib debian/fglrx/usr/share/ati/ returned exit code 1
make: *** [binary-arch] Error 2
dpkg-buildpackage: error: debian/rules binary gave error exit status 2
Removing temporary directory: fglrx-install.zUe1Qe
头像
b33e
论坛版主
帖子: 3862
注册时间: 2011-06-07 14:20
系统: Mint18
送出感谢: 16 次
接收感谢: 62 次

Re: 关于A卡闭源驱动创建deb包的错误代码,实在是解决不了了,求助

#2

帖子 b33e » 2013-02-24 11:35

别生成deb包了,直接安装试试 :em01
头像
rapistor
帖子: 1982
注册时间: 2009-01-19 15:09
送出感谢: 4 次
接收感谢: 8 次

Re: 关于A卡闭源驱动创建deb包的错误代码,实在是解决不了了,求助

#3

帖子 rapistor » 2013-02-24 12:10

可能缺少一些依赖文件,网上搜索一下。
如果不考虑硬解,就不用生成deb。
坚守在linux的天堂!
头像
rapistor
帖子: 1982
注册时间: 2009-01-19 15:09
送出感谢: 4 次
接收感谢: 8 次

Re: 关于A卡闭源驱动创建deb包的错误代码,实在是解决不了了,求助

#4

帖子 rapistor » 2013-02-24 12:16

Installing Dependencies(安装依赖文件)

First of all, let's install some dependencies needed for creating the Debian packages out of the .run file. Open the terminal and enter these commands:

sudo apt-get install cdbs fakeroot build-essential dh-make debconf execstack dh-modaliases

sudo apt-get install debhelper dkms libqtgui4 libstdc++6 libelfg0 unzip


64位的要装还要装这些,因为驱动是32位的:
Users of amd64 platforms (64-bit) need also to install these packages:

sudo apt-get install ia32-libs-multiarch i386 lib32gcc1 ia32-libs libc6-i386 ia32-libs
坚守在linux的天堂!
minglv
帖子: 6
注册时间: 2013-03-18 18:05
系统: ubuntu 12.04andwin8
送出感谢: 0
接收感谢: 0

Re: 关于A卡闭源驱动创建deb包的错误代码,实在是解决不了了,求助

#5

帖子 minglv » 2013-03-19 19:57

楼主解决没,我也是遇到这个问题,能分享一下吗
头像
艾徳庄
帖子: 74
注册时间: 2013-02-07 11:36
系统: debian wheezy
送出感谢: 5 次
接收感谢: 2 次

Re: 关于A卡闭源驱动创建deb包的错误代码,实在是解决不了了,求助

#6

帖子 艾徳庄 » 2013-03-19 20:07

1.在amd官网下载与自己显卡配套的闭源驱动,amd-driver-installer-catalyst-13.1-linux-x86.x86_64.run

2.卸载旧驱动:

sudo sh /usr/share/ati/fglrx-uninstall.sh;

sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*, 可能提示找不到文件,ignore。

3.安装依赖库文件:

sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 execstack libelfg0 dh-modaliases linux-headers-generic,部分库文件可能已经存在,ignore。

4.64位系统,还需要安装32位库:

sudo apt-get install lib32gcc1 libc6-i386 ia32-libs(据说现在不用安装这个也可以,只需装前两个);
5.准备工作已经充分,开始安装:

cd ~/;mkdir catalyst;cd catalyst;

cp ~/Download/amd-driver-installer-catalyst-13.1-linux-x86.x86_64.run .;

chmod +x amd-driver-installer-catalyst-13.1-linux-x86.x86_64.run;

./amd-driver-installer-catalyst-13.1-linux-x86.x86_64.run --extract driver;

cd driver

./ati-installer.sh 13.100 --buildpkg Ubuntu/quantal

(ps:quantal,是12.10的代号,如果安装12.04的闭源驱动,将quantal换为precise即可)

cd ..

sudo dpkg -i fglrx*.deb

sudo aticonfig --initial -f

sudo aticonfig --input=/etc/X11/xorg.conf --tls=1

6.sudo reboot
如果楼主严格按照这个步骤的话应该不会出现错误的,仔细看看是不是上面说的什么依赖包没有装。
回复

回到 “常用硬件支持”