sh: dpkg: command not found

Help
Taz
2006-03-16
2013-02-05
  • Taz
    Taz
    2006-03-16

    I'm running FC4 and would like to use sbackup but I keep getting this error : "sh: dpkg: command not found".
    I saw the note "If you do not run a Debian derrived distribution then you can comment out
    lines that backup the list of installed packages on a Debian system. An authomatic test will be added soon, but the lack of dpkg command shouldn't raise an exception there."
    I guess this is what I haven't done, but which lines to comment out?
    Thanks

     
    • This is the part to comment out in the sbackupd:

      # Backup list of installed packages (Debian only part)
      command = "dpkg --get-selections"
      s = os.popen( command )
      if local:
          d = open( tdir+"packages", "w" )
      else:
          d = gnomevfs.create( tdir+"packages", 2 )
      shutil.copyfileobj( s, d )
      s.close()
      # End of Debian only part