On Wed, Aug 26, 2009 at 09:50:16PM +0200, Max Kellermann wrote:
> Package: computer-janitor
> Version: 1.13.2-2
> 
> woodpecker:~# computer-janitor
> ERROR: Essential package dash is missing. There may be problems with
> apt sources.list or Packages files may be missing?
> woodpecker:~# dpkg -l dash
> Desired=Unknown/Install/Remove/Purge/Hold
> |
> Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
> uppercase=bad)
> ||/ Name                        Version
> Description
> +++-===========================-===========================-======================================================================
> ii  dash                        0.5.4-12
> POSIX-compliant shell
> 
> 

This may happen if
  a) it's not in APT's cache
  b) the candidate version is not downloadable, e.g. when
     you pinned the installed version to 1000 and it's not
     downloadable anymore.


The following patch should fix your problem, please report
back whether it does:

=== modified file 'computerjanitorapp/app.py'
--- computerjanitorapp/app.py   2009-08-14 12:37:25 +0000
+++ computerjanitorapp/app.py   2009-10-10 17:33:52 +0000
@@ -149,7 +149,7 @@ aren't.""")
         for name in ["dash", "gzip"]:
             if name not in self.apt_cache:
                 raise SourcesListProblem(name)
-            if not self.apt_cache[name].candidate.downloadable:
+            if not any(v.downloadable for v in self.apt_cache[name].versions):
                 raise SourcesListProblem(name)
 
     def whitelist_files(self, dirnames):




-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to