Re: Fwd: Kernel panic - after upgrade

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, Jan 18, 2015 at 1:31 PM, Ralf Mardorf
<ralf.mardorf@xxxxxxxxxxxxxx> wrote:
> On Sun, 18 Jan 2015 20:24:54 +0100, Damjan Georgievski wrote:
>> > After I reinstalled gcc-libs package, I can start firefox.
>>
>> Your system might still have broken packages after those conversions
>> you were doing.
>>
>> Use pacman {-Q --query} with
>>   -k, --check          check that package files exist (-kk for file
>> properties) to check everything.
>
> I would ignore "0 missing files" to stay on top of things.
>
> sudo pacman -Qk | grep -v "0 missing files"

Here's another little script[1] that might help you, Pal -- it looks
at all binaries in $PATH for any missing shared libraries (it would
have caught your firefox problem, for example). Some of them are false
positives as some packages (not many) include optional binaries that
require extra libs (for instance, colord package -> colord-sane binary
can report as "bad" if you don't have package sane installed because
you don't have a scanner :) ). It may help you find more broken things
directly instead of by chance.

#!/bin/bash
#
# Search all binaries in $PATH for missing shared libs

IFS=:
for BINDIR in ${PATH}; do
  BINS=$(find "${BINDIR}" -type f -printf "%p:")
  for BIN in ${BINS}; do
    ldd "${BIN}" 2>/dev/null | grep -i "not found" | cut -d ' ' -f1 | \
      xargs -I '{}' printf "${BIN},%s\n" '{}'
  done
done

It prints out a CSV-type file, just change that final printf format to
your liking.

-te

[1] wget https://raw.githubusercontent.com/troyengel/scripts/master/badlibs.sh


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux