[Bug 896689] Re: <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'version'

Julian Andres Klode juliank at ubuntu.com
Fri Jan 20 15:45:59 UTC 2012


Especially every package without a candidate version seems to have this
property set:

apt's depcache.cc around line 1500:
   if (Pkg->CurrentVer == 0 || Pkg->VersionList == 0 || CandidateVer == 0)
     Status = 2;   

and 
  inline bool Upgradable() const {return Status >= 1;};

which should probably be
  inline bool Upgradable() const {return Status >= 2 && CandidateVersion ;};

this would of course requires a rebuild of reverse dependencies and is
probably not entirely correct either.

** Also affects: apt (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptdaemon in Ubuntu.
https://bugs.launchpad.net/bugs/896689

Title:
  <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute
  'version'

Status in “apt” package in Ubuntu:
  New
Status in “aptdaemon” package in Ubuntu:
  Confirmed
Status in “python-apt” package in Ubuntu:
  Confirmed

Bug description:
  Description:	Ubuntu precise (development branch)
  Release:	12.04
  aptdaemon:
    Installed: 0.43+bzr712-0ubuntu1
    Candidate: 0.43+bzr712-0ubuntu1
    Version table:
   *** 0.43+bzr712-0ubuntu1 0
          500 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: aptdaemon 0.43+bzr712-0ubuntu1
  ProcVersionSignature: Ubuntu 3.2.0-1.3-generic 3.2.0-rc2
  Uname: Linux 3.2.0-1-generic x86_64
  NonfreeKernelModules: nvidia
  Annotation: Upgrading the system failed
  ApportVersion: 1.90-0ubuntu1
  Architecture: amd64
  Date: Sat Nov 26 15:29:44 2011
  DesktopFile: /usr/share/aptdaemon/aptdaemon.desktop
  ExecutablePath: /usr/sbin/aptd
  InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release amd64 (20110427.1)
  PackageArchitecture: all
  SourcePackage: aptdaemon
  SysLog:
   
  Title: <type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'version'
  TransactionDepends: [[], [], [], [], [], [], []]
  TransactionErrorCode: error-unknown
  TransactionKwargs: {'safe_mode': dbus.Boolean(True)}
  TransactionLocale:
   
  TransactionOutput:
   
  TransactionPackages: [[], [], [], [], [], []]
  TransactionRole: role-upgrade-system
  UpgradeStatus: Upgraded to precise on 2011-11-22 (4 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/896689/+subscriptions




More information about the foundations-bugs mailing list