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

Bug#520673: Info received (All programs in the directory /usr/lib/apt/methods segfault)



EB> Is there any known workaround?

Replying to myself:

Don't ask me why, but when any of these apps are launched from a strace context, they just work (!?)

So here is an ugly but simple workaround (run as root, or use sudo)

# Move apps in trouble into another dir
cd /usr/lib/apt/
mkdir /usr/lib/apt/methods.orig/
mv methods/* methods.orig/

# Create a wrapper script
cat > /usr/lib/apt/methods/any
#!/bin/sh
prog=`basename $0`
orig='/usr/lib/apt/methods.orig'
strace "$orig/$prog" $* 2> /dev/null
# end of "any" script, it Ctrl+D

# Make it executable
chmod +x /usr/lib/apt/methods/any

# Hard-link wrapper to the fake apps
for f in bzip2 cdrom copy file ftp gpgv gzip http lzma rred rsh ssh; do sudo ln any $f; done

# That's it, now aptitude update should work as expected
# Anyway, this is NOT a fix, I hope this issue to be solved ASAP.
# Do not leave this script on your system...




Reply to: