Author

Topic: xubuntu 12.04 wants to update fglrx-* packages - safe? (Read 4587 times)

hero member
Activity: 784
Merit: 502
When it comes to mining: if it aint broke, don't fix it! Having some real trouble getting both cards recognised after a 12.4 upgrade. ATICOnfig can see them, clinfo can't.. Angry.
legendary
Activity: 1792
Merit: 1008
/dev/null
in this case start as recovery mode and uninstall fglrx as 01BTC01 said, this shouldnt happen, if you fuck up your graphic drivers then X11 wont be working, not the whole system. so it seems to be a other problem.
if this dosnt work out, contact me in IRC/XMPP so we can work it out together Wink
donator
Activity: 543
Merit: 500
That's nice, but sadly the machine doesn't boot so there is no SSH atm.
It will take one or two more days until I can drive to the location.
legendary
Activity: 1792
Merit: 1008
/dev/null
i gave u a link to a wiki with the right commands + explaing how to do everything.
since it is safe unless u do it wrong (ie not like it says in the wiki)

if you provide me SSH il fix it (if u cant fix it) Wink
donator
Activity: 543
Merit: 500
if it screws up ur system, i help u for free to fix it since i screwd it up Wink

well u fked up your apt (which had nothing to do with this) first, then you create the packages wrong (u didnt specify which distro + version, sometimes this may work, sometimes not).
Why didn't you tell me the correct commands then? Smiley (My apt wasn't fucked up - did you actually read my posts? I ran the command in the wrong directory)
Why did you tell me it's safe to upgrade fglrx in the first place?

another thing on linux -> "it dosnt work, i have no idea why" is not a valid argument
1. Tell everyone how easy it is
2. Give little or no help, let someone fuck up
3. Tell them they are stupid

That's an attitude only linux users have.
legendary
Activity: 1792
Merit: 1008
/dev/null
well u fked up your apt (which had nothing to do with this) first, then you create the packages wrong (u didnt specify which distro + version, sometimes this may work, sometimes not). its not about blaming Wink
another thing on linux -> "it dosnt work, i have no idea why" is not a valid argument, there are plenty of logs and debuging information available to find the problem and fix it.
donator
Activity: 543
Merit: 500
@ShadesOfMarble: if you do something wrong, it breaks of course.
I did what you said. First upgrading the driver and then trying to downgrade it according to your instructions. I don't think I'm the one to blame Wink
legendary
Activity: 1792
Merit: 1008
/dev/null
if your FS gets remounted as RO (read only) then there are probably bad sectors or another corruption/stuck operation, use
Code:
fsck -c -f /dev/sd*
this will force a check and check for bad sectors.

@ShadesOfMarble: if you do something wrong, it breaks of course.
donator
Activity: 543
Merit: 500
I'm unable to SSH into the machine and I have no physical access right now.

Now that I have to go there anyway, I'm going to install Windows on it.
Restarting cgminer every 7 days is less trouble than crashing the whole system by installing a different driver version.
vip
Activity: 756
Merit: 503
Last time my fglrx broke, I could not do anything without remounting the filesystem as writeable.
legendary
Activity: 1792
Merit: 1008
/dev/null
no need for this fancy stuff, just boot with recovery and drop to a root shell, NOW install the packages --builddpkg
then reboot
vip
Activity: 756
Merit: 503
Ok, I got those error messages because I ran the command inside the folder with the fglrx*.deb files...
So, after removing all fglrx* packages from the system I ran:

Code:
sudo ./amd-driver-installer-catalyst-12.10-x86.x86_64.run  --buildpkg
sudo dpkg -i fglrx*.deb

It looks like it worked...

Code:
micha@atlas:~/catalyst$ sudo dpkg -i fglrx*.deb
Selecting previously unselected package fglrx.
(Reading database ... 177273 files and directories currently installed.)
Unpacking fglrx (from fglrx_8.982-0ubuntu1_amd64.deb) ...
Selecting previously unselected package fglrx-amdcccle.
Unpacking fglrx-amdcccle (from fglrx-amdcccle_8.982-0ubuntu1_amd64.deb) ...
Selecting previously unselected package fglrx-dev.
Unpacking fglrx-dev (from fglrx-dev_8.982-0ubuntu1_amd64.deb) ...
Setting up fglrx (2:8.982-0ubuntu1) ...
update-alternatives: using /usr/lib/fglrx/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode.
update-alternatives: warning: skip creation of /etc/OpenCL/vendors/amdocl32.icd because associated file /usr/lib/fglrx/etc/OpenCL/vendors/amdocl32.icd (of link group x86_64-linux-gnu_gl_conf) doesn't exist.
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/fglrx/ld.so.conf because link group x86_64-linux-gnu_gl_conf is broken.
update-alternatives: warning: skip creation of /etc/OpenCL/vendors/amdocl32.icd because associated file /usr/lib/fglrx/etc/OpenCL/vendors/amdocl32.icd (of link group x86_64-linux-gnu_gl_conf) doesn't exist.
update-alternatives: using /usr/lib/fglrx/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode.
update-initramfs: deferring update (trigger activated)
Loading new fglrx-8.982 DKMS files...
First Installation: checking all kernels...
Building only for 3.2.0-32-generic
Building for architecture x86_64
Building initial module for 3.2.0-32-generic
Done.

fglrx:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.2.0-32-generic/updates/dkms/

depmod....

DKMS: install completed.
update-initramfs: deferring update (trigger activated)
Processing triggers for ureadahead ...
Setting up fglrx-amdcccle (2:8.982-0ubuntu1) ...
Setting up fglrx-dev (2:8.982-0ubuntu1) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-32-generic
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

But the system now doesn't boot anymore. And as I currently have no physical access to it - it will stay offline for some time.

Please don't tell other people it's safe to upgrade fglrx in the future Smiley

If you get a blank screen when booting then fglrx is broken.

You will need to log into the recovery console. Then remount your filesystem as writable.

Code:
sudo mount -o remount,rw 'PATH TO YOUR FILESYSTEM'

Then remove fglrx.

Code:
sudo sh /usr/share/ati/fglrx-uninstall.sh
sudo apt-get remove --purge fglrx fglrx_* fglrx-amdcccle* fglrx-dev*

You should now get a login screen after rebooting and then you can reinstall fglrx.

Hope this help.


EDIT: Just saw that you're trying to access your box remotely. I'm not sure if fglrx can break SSH (I guess the box is freezing when fglrx try to load). If you don't get a login screen then previous post can still help.
donator
Activity: 543
Merit: 500
Ok, I got those error messages because I ran the command inside the folder with the fglrx*.deb files...
So, after removing all fglrx* packages from the system I ran:

Code:
sudo ./amd-driver-installer-catalyst-12.10-x86.x86_64.run  --buildpkg
sudo dpkg -i fglrx*.deb

It looks like it worked...

Code:
micha@atlas:~/catalyst$ sudo dpkg -i fglrx*.deb
Selecting previously unselected package fglrx.
(Reading database ... 177273 files and directories currently installed.)
Unpacking fglrx (from fglrx_8.982-0ubuntu1_amd64.deb) ...
Selecting previously unselected package fglrx-amdcccle.
Unpacking fglrx-amdcccle (from fglrx-amdcccle_8.982-0ubuntu1_amd64.deb) ...
Selecting previously unselected package fglrx-dev.
Unpacking fglrx-dev (from fglrx-dev_8.982-0ubuntu1_amd64.deb) ...
Setting up fglrx (2:8.982-0ubuntu1) ...
update-alternatives: using /usr/lib/fglrx/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode.
update-alternatives: warning: skip creation of /etc/OpenCL/vendors/amdocl32.icd because associated file /usr/lib/fglrx/etc/OpenCL/vendors/amdocl32.icd (of link group x86_64-linux-gnu_gl_conf) doesn't exist.
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/fglrx/ld.so.conf because link group x86_64-linux-gnu_gl_conf is broken.
update-alternatives: warning: skip creation of /etc/OpenCL/vendors/amdocl32.icd because associated file /usr/lib/fglrx/etc/OpenCL/vendors/amdocl32.icd (of link group x86_64-linux-gnu_gl_conf) doesn't exist.
update-alternatives: using /usr/lib/fglrx/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode.
update-initramfs: deferring update (trigger activated)
Loading new fglrx-8.982 DKMS files...
First Installation: checking all kernels...
Building only for 3.2.0-32-generic
Building for architecture x86_64
Building initial module for 3.2.0-32-generic
Done.

fglrx:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.2.0-32-generic/updates/dkms/

depmod....

DKMS: install completed.
update-initramfs: deferring update (trigger activated)
Processing triggers for ureadahead ...
Setting up fglrx-amdcccle (2:8.982-0ubuntu1) ...
Setting up fglrx-dev (2:8.982-0ubuntu1) ...
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-32-generic
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

But the system now doesn't boot anymore. And as I currently have no physical access to it - it will stay offline for some time.

Please don't tell other people it's safe to upgrade fglrx in the future Smiley
legendary
Activity: 1792
Merit: 1008
/dev/null
Code:
E: Unable to locate package fglrx_9.002-0ubuntu1_amd64.deb
should never happen unless you killed your apt. maybe only the cache is bugging, try "apt-get clean"
donator
Activity: 543
Merit: 500
Looks like removing anything doesn't work either.

Code:
x@atlas:~/catalyst$ sudo apt-get --purge remove fglrx*
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package fglrx_9.002-0ubuntu1_amd64.deb
E: Couldn't find any package by regex 'fglrx_9.002-0ubuntu1_amd64.deb'
E: Unable to locate package fglrx-amdcccle_9.002-0ubuntu1_amd64.deb
E: Couldn't find any package by regex 'fglrx-amdcccle_9.002-0ubuntu1_amd64.deb'
E: Unable to locate package fglrx-dev_9.002-0ubuntu1_amd64.deb
E: Couldn't find any package by regex 'fglrx-dev_9.002-0ubuntu1_amd64.deb'
E: Unable to locate package fglrx-installer_9.002-0ubuntu1_amd64.changes
E: Couldn't find any package by regex 'fglrx-installer_9.002-0ubuntu1_amd64.changes'
legendary
Activity: 1792
Merit: 1008
/dev/null
Code:
--auto-deconfigure
useless

remove fglrx first, afterwards install these packages.
donator
Activity: 543
Merit: 500
./amd-driver-installer-catalyst-12.10-x86.x86_64.run --buildpkg
sudo dpkg -i fglrx*.deb --auto-deconfigure

Gives me the following, which looks like way too much errors...

Code:
x@atlas:~/catalyst$ sudo dpkg -i fglrx*.deb --auto-deconfigure
dpkg: considering removing fglrx-updates in favour of fglrx ...
dpkg: yes, will remove fglrx-updates in favour of fglrx.
(Reading database ... 177579 files and directories currently installed.)
Unpacking fglrx (from fglrx_9.002-0ubuntu1_amd64.deb) ...
Removing all DKMS Modules
vDone.
update-alternatives: using /usr/lib/pxpress/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode.
update-alternatives: using /usr/lib/pxpress/alt_ld.so.conf to provide /etc/ld.so.conf.d/i386-linux-gnu_GL.conf (i386-linux-gnu_gl_conf) in auto mode.
update-alternatives: using /usr/lib/x86_64-linux-gnu/mesa/ld.so.conf to provide /etc/ld.so.conf.d/x86_64-linux-gnu_GL.conf (x86_64-linux-gnu_gl_conf) in auto mode.
update-initramfs: deferring update (trigger activated)
Preparing to replace fglrx-amdcccle 2:9.002-0ubuntu1 (using fglrx-amdcccle_9.002-0ubuntu1_amd64.deb) ...
Unpacking replacement fglrx-amdcccle ...
Preparing to replace fglrx-dev 2:9.002-0ubuntu1 (using fglrx-dev_9.002-0ubuntu1_amd64.deb) ...
Unpacking replacement fglrx-dev ...
dpkg: error processing --auto-deconfigure (--install):
 cannot access archive: No such file or directory
dpkg: dependency problems prevent configuration of fglrx:
 fglrx depends on fglrx-updates; however:
  Package fglrx-updates is not installed.
dpkg: error processing fglrx (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of fglrx-amdcccle:
 fglrx-amdcccle depends on fglrx; however:
  Package fglrx is not configured yet.
 fglrx-amdcccle depends on fglrx-updates; however:
  Package fglrx-updates is not installed.
dpkg: error processing fglrx-amdcccle (--install):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of fglrx-dev:
 fglrx-dev depends on fglrx; however:
  Package fglrx is not configured yet.
dpkg: error processing fglrx-dev (--install):
 dependency problems - leaving unconfigured
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Processing triggers for initramfs-tools ...
update-initramfs: Generating /boot/initrd.img-3.2.0-32-generic
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Errors were encountered while processing:
 --auto-deconfigure
 fglrx
 fglrx-amdcccle
 fglrx-dev
legendary
Activity: 1792
Merit: 1008
/dev/null
donator
Activity: 543
Merit: 500
Running as normal user isn't working, tells me I need to be root!?
legendary
Activity: 1792
Merit: 1008
/dev/null
chmod +x and run it as normal user, create packages (you can choose). if your distri isnt listed run the binary with --help and specify the distro + package building on the cli.
donator
Activity: 543
Merit: 500
I downloaded a file called "amd-driver-installer-catalyst-12.10-x86.x86_64.run", is that the correct one?
Just sudo run it?
legendary
Activity: 1792
Merit: 1008
/dev/null
download an older fglrx (the general package), there u can create packages for ur system. install these deps with dpkg, restart. thats it Tongue
donator
Activity: 543
Merit: 500
Looks like I need your help :p I upgraded the fglrx packages and now mining performance is crap.

5870 is working fine, but cgminer is showing wrong clocks (157 Mhz, which should be 900 Mhz)
7970 shows correct clock (950 Mhz), but is hashing at 190 MH/s...

Using cgminer 2.11.2
legendary
Activity: 1792
Merit: 1008
/dev/null
u can always grab the old deb's to downgrade afterwards if it dosnt work.
Is it really *that* easy? Have you done it? Especially with the fglrx-* packages?
What about dependencies between packages?
yes you can, just get all 3 old fgrlx packages and install the deps with "sudo dpkg -i "
i downgraded alot of times, altough not fglrx (only 1 year ago), still it works. if it screws up ur system, i help u for free to fix it since i screwd it up Wink

EDIT: u probably already got the old debs:
Code:
$ ls /var/cache/apt/archives/*fglrx*
donator
Activity: 543
Merit: 500
u can always grab the old deb's to downgrade afterwards if it dosnt work.
Is it really *that* easy? Have you done it? Especially with the fglrx-* packages?
What about dependencies between packages?
legendary
Activity: 1792
Merit: 1008
/dev/null
Running apt-get upgrade, my system wants to upgrade these packages:

The following packages have been kept back:
  libminiupnpc8 linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  base-files dkms dpkg dpkg-dev fglrx-amdcccle-updates fglrx-updates
  fglrx-updates-dev
firefox firefox-globalmenu firefox-gnome-support
  firefox-locale-en gnome-games-data gnome-sudoku gnomine initramfs-tools
  initramfs-tools-bin isc-dhcp-client isc-dhcp-common jockey-common jockey-gtk
  libapache2-mod-php5 libdpkg-perl libdrm-intel1 libdrm-nouveau1a
  libdrm-radeon1 libdrm2 libfreetype6 libgl1-mesa-dri libgl1-mesa-glx
  libglapi-mesa libglu1-mesa libmysqlclient18 libnm-glib-vpn1 libnm-glib4
  libnm-util2 libnspr4 libnss3 libplymouth2 libpulse-mainloop-glib0 libpulse0
  libpulsedsp libtelepathy-glib0 libxatracker1 linux-libc-dev mahjongg
  mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server-5.5
  mysql-server-core-5.5 network-manager oracle-java7-installer php5 php5-cli
  php5-common php5-curl php5-mysql plymouth plymouth-label
  plymouth-theme-ubuntu-text pulseaudio pulseaudio-module-x11 pulseaudio-utils
  ubuntu-minimal ubuntu-standard upstart x11-common xorg xserver-xorg
  xserver-xorg-input-all xserver-xorg-video-all


Is it safe to update those (bold) packages or should I keep the old packages for mining with cgminer on a mixed 7970/5850 setup?

u can always grab the old deb's to downgrade afterwards if it dosnt work.
to get around "The following packages have been kept back" u have to use apt-get dist-upgrade
donator
Activity: 543
Merit: 500
Running apt-get upgrade, my system wants to upgrade these packages:

The following packages have been kept back:
  libminiupnpc8 linux-generic linux-headers-generic linux-image-generic
The following packages will be upgraded:
  base-files dkms dpkg dpkg-dev fglrx-amdcccle-updates fglrx-updates
  fglrx-updates-dev
firefox firefox-globalmenu firefox-gnome-support
  firefox-locale-en gnome-games-data gnome-sudoku gnomine initramfs-tools
  initramfs-tools-bin isc-dhcp-client isc-dhcp-common jockey-common jockey-gtk
  libapache2-mod-php5 libdpkg-perl libdrm-intel1 libdrm-nouveau1a
  libdrm-radeon1 libdrm2 libfreetype6 libgl1-mesa-dri libgl1-mesa-glx
  libglapi-mesa libglu1-mesa libmysqlclient18 libnm-glib-vpn1 libnm-glib4
  libnm-util2 libnspr4 libnss3 libplymouth2 libpulse-mainloop-glib0 libpulse0
  libpulsedsp libtelepathy-glib0 libxatracker1 linux-libc-dev mahjongg
  mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server-5.5
  mysql-server-core-5.5 network-manager oracle-java7-installer php5 php5-cli
  php5-common php5-curl php5-mysql plymouth plymouth-label
  plymouth-theme-ubuntu-text pulseaudio pulseaudio-module-x11 pulseaudio-utils
  ubuntu-minimal ubuntu-standard upstart x11-common xorg xserver-xorg
  xserver-xorg-input-all xserver-xorg-video-all


Is it safe to update those (bold) packages or should I keep the old packages for mining with cgminer on a mixed 7970/5850 setup?
Jump to: