12.04安装ATIHD6570显卡驱动问题

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
zviki
帖子: 80
注册时间: 2012-04-10 14:57

12.04安装ATIHD6570显卡驱动问题

#1

帖子 zviki » 2012-06-30 11:48

我下载了官方的最新驱动了,在创建deb包的时候出现错误,代码如下:
zviki@zviki-K42JP:~/catalyst12.4$ sudo sh ./amd-driver-installer-12-4-x86.x86_64.run --buildpkg Ubuntu/precise
Created directory fglrx-install.uDFUhk
Verifying archive integrity... All good.
Uncompressing AMD Catalyst(TM) Proprietary Driver-8.961.................................................................................................................................................................
=====================================================================
AMD Catalyst(TM) Proprietary Driver Installer/Packager
=====================================================================
Generating package: Ubuntu/precise
Resolving build dependencies...
apt 0.8.16~exp12ubuntu6 for i386 compiled on Mar 15 2012 18:53:59
Usage: apt-get [options] command
apt-get [options] install|remove pkg1 [pkg2 ...]
apt-get [options] source pkg1 [pkg2 ...]

apt-get is a simple command line interface for downloading and
installing packages. The most frequently used commands are update
and install.

Commands:
update - Retrieve new lists of packages
upgrade - Perform an upgrade
install - Install new packages (pkg is libc6 not libc6.deb)
remove - Remove packages
autoremove - Remove automatically all unused packages
purge - Remove packages and config files
source - Download source archives
build-dep - Configure build-dependencies for source packages
dist-upgrade - Distribution upgrade, see apt-get(8)
dselect-upgrade - Follow dselect selections
clean - Erase downloaded archive files
autoclean - Erase old downloaded archive files
check - Verify that there are no broken dependencies
changelog - Download and display the changelog for the given package
download - Download the binary package into the current directory

Options:
-h This help text.
-q Loggable output - no progress indicator
-qq No output except for errors
-d Download only - do NOT install or unpack archives
-s No-act. Perform ordering simulation
-y Assume Yes to all queries and do not prompt
-f Attempt to correct a system with broken dependencies in place
-m Attempt to continue if archives are unlocatable
-u Show a list of upgraded packages as well
-b Build the source package after fetching it
-V Show verbose version numbers
-c=? Read this configuration file
-o=? Set an arbitrary configuration option, eg -o dir::cache=/tmp
See the apt-get(8), sources.list(5) and apt.conf(5) manual
pages for more information and options.
This APT has Super Cow Powers.
Unable to resolve build-essential debhelper dh-modaliases execstack. Please manually install and try again.
Package build failed!
Package build utility output:
./packages/Ubuntu/ati-packager.sh: 294: ./packages/Ubuntu/ati-packager.sh: debclean: not found
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 2:8.961-0ubuntu1
dpkg-buildpackage: source changed by AMD: Advanced Micro Devices. <http://ati.amd.com/support/driver.html>
dpkg-source --before-build fglrx.5Bxi5I
dpkg-buildpackage: host architecture i386
debian/rules build
DEB_HOST_MULTIARCH is not a supported variable name at /usr/bin/dpkg-architecture line 214.
DEB_HOST_MULTIARCH is not a supported variable name at /usr/bin/dpkg-architecture line 214.
DEB_HOST_MULTIARCH is not a supported variable name at /usr/bin/dpkg-architecture line 214.
DEB_HOST_MULTIARCH is not a supported variable name at /usr/bin/dpkg-architecture line 214.
DEB_HOST_MULTIARCH is not a supported variable name at /usr/bin/dpkg-architecture line 214.
#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//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#|8.961|g" \
-e "s|#SRCXARCH#|xpic|g" \
-e "s|#SRCARCH#|x86|g" \
-e "s|#SRCLIBDIR#|lib|g" \
-e "s|#DEB_HOST_MULTIARCH#||g" \
-e "s|#OTHER_ARCH#||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
make: dh: Command not found
make: *** [build] Error 127
dpkg-buildpackage: error: debian/rules build gave error exit status 2
./packages/Ubuntu/ati-packager.sh: 294: ./packages/Ubuntu/ati-packager.sh: debclean: not found
dpkg-buildpackage: export CFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export CPPFLAGS from dpkg-buildflags (origin: vendor):
dpkg-buildpackage: export CXXFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export FFLAGS from dpkg-buildflags (origin: vendor): -g -O2
dpkg-buildpackage: export LDFLAGS from dpkg-buildflags (origin: vendor): -Wl,-Bsymbolic-functions
dpkg-buildpackage: source package fglrx-installer
dpkg-buildpackage: source version 2:8.961-0ubuntu1
dpkg-buildpackage: source changed by AMD: Advanced Micro Devices. <http://ati.amd.com/support/driver.html>
dpkg-source --before-build fglrx.WgPS5Y
dpkg-buildpackage: host architecture i386
debian/rules build
DEB_HOST_MULTIARCH is not a supported variable name at /usr/bin/dpkg-architecture line 214.
DEB_HOST_MULTIARCH is not a supported variable name at /usr/bin/dpkg-architecture line 214.
DEB_HOST_MULTIARCH is not a supported variable name at /usr/bin/dpkg-architecture line 214.
DEB_HOST_MULTIARCH is not a supported variable name at /usr/bin/dpkg-architecture line 214.
DEB_HOST_MULTIARCH is not a supported variable name at /usr/bin/dpkg-architecture line 214.
#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//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#|8.961|g" \
-e "s|#SRCXARCH#|xpic|g" \
-e "s|#SRCARCH#|x86|g" \
-e "s|#SRCLIBDIR#|lib|g" \
-e "s|#DEB_HOST_MULTIARCH#||g" \
-e "s|#OTHER_ARCH#||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
make: dh: Command not found
make: *** [build] Error 127
dpkg-buildpackage: error: debian/rules build gave error exit status 2
Removing temporary directory: fglrx-install.uDFUhk
有谁知道这是什么原因吗,要怎么解决啊,谢谢。。。。。(我是小白)
头像
todienow
帖子: 2780
注册时间: 2011-01-06 13:14
系统: 正在刷新...请耐心等待..
来自: 6204

Re: 12.04安装ATIHD6570显卡驱动问题

#2

帖子 todienow » 2012-06-30 12:09

嗯,创建不了就算了,直接运行*.run吧
找妹纸点这里
GS:NONC
GS:NONB
头像
仗剑一游
帖子: 204
注册时间: 2012-03-07 9:59
系统: Arch

Re: 12.04安装ATIHD6570显卡驱动问题

#3

帖子 仗剑一游 » 2012-06-30 12:28

为什么不直接运行,干嘛那么麻烦创建包。
头像
icelee123
帖子: 811
注册时间: 2011-07-16 19:48
系统: Arch

Re: 12.04安装ATIHD6570显卡驱动问题

#4

帖子 icelee123 » 2012-07-02 19:45

没把编译用的包装全吧
其实我是菜鸟、、、
头像
rapistor
帖子: 1983
注册时间: 2009-01-19 15:09

Re: 12.04安装ATIHD6570显卡驱动问题

#5

帖子 rapistor » 2012-07-02 19:59

sudo apt-get install build-essential cdbs dh-make dkms execstack dh-modaliases fakeroot
坚守在linux的天堂!
zviki
帖子: 80
注册时间: 2012-04-10 14:57

Re: 12.04安装ATIHD6570显卡驱动问题

#6

帖子 zviki » 2012-07-04 13:03

哈哈,我来回答。。。。。。
1 uninstall ATI driver
2.install free driver
3.reboot
4.install ATI driver with the patch
5.reboot

in detail (for 32bit):

$ sudo sh /usr/share/ati/fglrx-uninstall.sh
$ sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*
$ sudo rm /etc/X11/xorg.conf
$ sudo apt-get install --reinstall libgl1-mesa-glx:i386 libgl1-mesa-dri:i386 xserver-xorg-core
$ sudo dpkg-reconfigure xserver-xorg
$ sudo reboot
$ mkdir ~/catalyst12.4/
$ cd ~/catalyst12.4/
这里要把下载的驱动文件放到~/catalyst12.4/目录下

$ chmod +x amd-driver-installer-12-4-x86.x86_64.run
$ ./amd-driver-installer-12-4-x86.x86_64.run --extract driver
$ cd ~/catalyst12.4/driver/common/lib/modules/fglrx/build_mod/
$ wget -O fglrx.patch http://ubuntuone.com/5gNgEmVfzs3ytD5QZ2YGCi
$ sudo apt-get install patch
$ patch -p1 < fglrx.patch
$ cd ~/catalyst12.4/driver/
$ ./ati-installer.sh 8.961 --buildpkg Ubuntu/precise
$ cd ~/catalyst12.4/
$ sudo apt-get install dkms
$ sudo dpkg -i fglrx*.deb
$ sudo amdconfig --initial -f
$ sudo reboot
$ fglrxinfo
display: :0.0 screen: 0
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: ATI Mobility Radeon HD 4200 Series
OpenGL version string: 3.3.11631 Compatibility Profile Context
我的也是6570的显卡,搞定了。。。。



我感觉好晕啊,原来这个问题也是自己提出来的啊,无语了。。。。。。。
suiwenfeng
帖子: 1
注册时间: 2014-02-22 9:48
系统: ubuntu

Re: 12.04安装ATIHD6570显卡驱动问题

#7

帖子 suiwenfeng » 2014-02-22 9:51

dh build
make: dh: Command not found

sudo apt-get install debhelper
回复