Getting Yaptest to work with Sudo

When you first install yaptest and try to use sudo you might get the following error: $ sudo ERROR: Environment variable YAPTEST_DBNAME is not set  at /usr/local/lib/site_perl/ line 126         yaptest::new(‘yaptest’) called at /usr/local/bin/ line 8         (in cleanup) Can’t call method “disconnect” on an undefined value at /usr/local/lib/site_perl/ line 3247. This is because […]