[Pkg-dkms-maint] Bug#758485: dkms: "sed: -e expression #1, char 6: unknown command: `m'" when installing nvidia
Laurent Kislaire
teebeenator at gmail.com
Tue Aug 26 23:12:03 UTC 2014
Package: dkms
Version: 2.2.0.3-1.2
Followup-For: Bug #758485
Dear Maintainer,
This also happened to me when dkms installing virtualbox which has 4 modules but no obsolete_module found.
The obsolete_module array ends up with 4 empty strings, leading to sa_mc_o array being not even initialized.
sed "${sa_mc_o[@]}" "$file" > "$temp_dir_name/${file##*/}.new" then translates into
sed /etc/modprobe.d/dkms.conf
sed: -e expression #1, char 6: unknown command: `m'
I've solved my problem by adding a check for sa_mc_o size before hitting sed
done
+ (( ${#sa_mc_o[@]} )) || return 0
# do all the changes at once, record the diffs for posterity
for file in "$@"; do
Best regards
Laurent
-- System Information:
Debian Release: jessie/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 3.14-2-686-pae (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dkms depends on:
ii build-essential 11.7
ii coreutils 8.21-1.2
ii dpkg-dev 1.17.13
ii gcc 4:4.9.1-3
ii make 4.0-8
ii module-init-tools 18-1
ii patch 2.7.1-6
Versions of packages dkms recommends:
ii fakeroot 1.20.1-1.1
ii linux-headers-686-pae 3.14+59
pn linux-image <none>
ii menu 2.1.47
ii sudo 1.8.9p5-1
dkms suggests no packages.
-- Configuration Files:
/etc/modprobe.d/dkms.conf changed:
-- no debconf information
More information about the Pkg-dkms-maint
mailing list