I had the same problem (Ubuntu 9.04, CUPS version 1.3.9) and I wanted to get my Lexmark X2630 printer working. Do this in the terminal (but change home/nathan/downloads to the path of the .zip you downloaded):
Code:
cd '/home/nathan/downloads'
unzip 'lexmark-inkjet-08-driver-1.0-1.i386.deb.sh.zip'
./lexmark-inkjet-08-driver-1.0-1.i386.deb.sh --noexec --target lexmark_install
Now we have extracted the files and you need to fix "is_cups_version_ok" function near the end of the 'lexmark_install/config/run.lua' file. It's quite easy - just open it in a text editor and insert '--[[' and '--]]' like this:
Code:
function is_cups_version_ok()
local bRet = true
--[[local packager = get_system_packaging()
local tmp_path = g_mysecurepath
local busehome = false
if tmp_path ~= nil and os.fileexists(tmp_path) then
use home
if os.fileexists(tmp_path .. '/cups_packages_072006') then
os.remove(tmp_path .. '/cups_packages_072006')
end
if os.fileexists(tmp_path .. '/cups_packages_072006') then
tmp_path = install.gettempdir()
else
busehome = true
end
else
tmp_path = install.gettempdir()
end
if packager == "rpm" then
os.execute('rpm -qa|grep cups > ' .. tmp_path .. '/cups_packages_072006')
cups_packages = shell_execute('cat ' .. tmp_path .. '/cups_packages_072006')
if cups_packages ~= nil and #cups_packages > 0 then
for _,cupspackage in pairs(cups_packages) do
cups_item = hyphen_replace(cupspackage)
if string.find(cups_item,'cups_1.1.')==1 then
bRet = false
break
end
end
else
bRet = false
end
elseif packager == "dpkg" then
os.execute("dpkg -l | grep cups | awk '{print $2$3}' > " .. tmp_path .. "/cups_packages_072006")
cups_packages = shell_execute('cat ' .. tmp_path .. '/cups_packages_072006')
if cups_packages ~= nil and #cups_packages > 0 then
for _,cupspackage in pairs(cups_packages) do
cups_item = cupspackage
if string.find(cups_item,'cups1.1.')==1 or string.find(cups_item,'cupsys1.1.')==1 then
bRet = false
break
end
end
else
bRet = false
end
else
end
if busehome == true then
os.remove(tmp_path .. '/cups_packages_072006')
end
--]]
return bRet
end
Now the file is fixed, it's time to install it:
Code:
cd '/home/nathan/downloads/lexmark_install'
sudo ./startupinstaller.sh
Note: it will install without checking your cups version. So make sure you have cups version above 1.2 - if you want to find what cups version you have just type 'http://localhost:631/' into your web browser address bar.
Bookmarks