Results 1 to 6 of 6

Thread: Upgrading to 10.10: "AttributeError: 'Template' object has no attribute 'official'"

  1. #1
    Join Date
    Apr 2006
    Location
    iceland
    Beans
    287
    Distro
    Ubuntu

    Upgrading to 10.10: "AttributeError: 'Template' object has no attribute 'official'"

    When I try to upgrade from 10.04 to 10.10 I get this:

    Code:
    Reading package lists... Done
    Building dependency tree        
    Reading state information... Done
    Building data structures... Done 
    Reading package lists... Done    
    Building dependency tree          
    Reading state information... Done
    Building data structures... Done 
    
    Updating repository information
    WARNING: Failed to read mirror file
    
    
    A fatal error occurred 
    
    Please report this as a bug and include the files 
    /var/log/dist-upgrade/main.log and /var/log/dist-upgrade/apt.log in 
    your report. The upgrade has aborted. 
    Your original sources.list was saved in 
    /etc/apt/sources.list.distUpgrade. 
    
    Traceback (most recent call last): 
    
    File "/tmp/tmpoIug3Y/maverick", line 7, in <module> 
    sys.exit(main()) 
    
    File "/tmp/tmpoIug3Y/DistUpgradeMain.py", line 158, in main 
    if app.run(): 
    
    File "/tmp/tmpoIug3Y/DistUpgradeController.py", line 1616, in run 
    return self.fullUpgrade() 
    
    File "/tmp/tmpoIug3Y/DistUpgradeController.py", line 1534, in 
    fullUpgrade 
    if not self.updateSourcesList(): 
    
    File "/tmp/tmpoIug3Y/DistUpgradeController.py", line 664, in 
    updateSourcesList 
    if not self.rewriteSourcesList(mirror_check=True): 
    
    File "/tmp/tmpoIug3Y/DistUpgradeController.py", line 486, in 
    rewriteSourcesList 
    distro.get_sources(self.sources) 
    
    File "/tmp/tmpoIug3Y/distro.py", line 103, in get_sources 
    source.template.official == True and 
    
    AttributeError: 'Template' object has no attribute 'official'
    Been trying to google but I haven't found any solutions.


    Any ideas?
    Quote Originally Posted by bodhi.zazen View Post
    At this time it is possible to run windows viruses with wine. They do not run well yet....http://os.newsforge.com/article.pl?s...30222&from=rss

  2. #2
    Join Date
    Apr 2006
    Location
    iceland
    Beans
    287
    Distro
    Ubuntu

    Re: Upgrading to 10.10: "AttributeError: 'Template' object has no attribute 'official

    Anyone?
    Quote Originally Posted by bodhi.zazen View Post
    At this time it is possible to run windows viruses with wine. They do not run well yet....http://os.newsforge.com/article.pl?s...30222&from=rss

  3. #3
    Join Date
    Feb 2009
    Location
    Blackpool, England
    Beans
    70
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Upgrading to 10.10: "AttributeError: 'Template' object has no attribute 'official

    I got something similar to this when doing a fresh install of Lucid which I didn't and still don't understand. I just did another fresh install from the same disk and it went fine.

    What I'm really saying is you might want to try doing a fresh install as a workaround to upgrading via update manager.
    Last edited by Noo 2 Ubuntoo; October 14th, 2010 at 12:35 AM.

  4. #4
    Join Date
    Apr 2006
    Location
    iceland
    Beans
    287
    Distro
    Ubuntu

    Re: Upgrading to 10.10: "AttributeError: 'Template' object has no attribute 'official

    Just installed some updates today (didn't pay attention to what updates they were) but after that the error disappeared so I was able to successfully upgrade to 10.10
    Quote Originally Posted by bodhi.zazen View Post
    At this time it is possible to run windows viruses with wine. They do not run well yet....http://os.newsforge.com/article.pl?s...30222&from=rss

  5. #5
    Join Date
    Nov 2010
    Location
    Waterloo
    Beans
    2
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: Upgrading to 10.10: "AttributeError: 'Template' object has no attribute 'official

    I'm a newbie here to who ran into the same problem. I figured my way out of it and I can give you the "how-to", but not the "why?".

    system>administration.>software sources
    Under "Ubunutu Software" tab, check the box: Cannocial-supported Open Source software (main)

    A popup should come up telling you may need to reinstall software, but if you have recently done an update (which you probably had when trying to first upgrade), then never mind this message.

    Go to system>admin>update manager and try to upgrade again.

    If this doesn't work go back to to Software Sources and also check the box: Community-maintained Open Source software (I can't remember if I checked this or not, that is why I'm suggesting try this if the upgrade doesn't work)

    Hope this helps!

    -meanderingthoughts2

  6. #6
    Join Date
    Dec 2005
    Location
    California
    Beans
    33
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Upgrading to 10.10: "AttributeError: 'Template' object has no attribute 'official

    Quote Originally Posted by meanderingthoughts2 View Post
    I'm a newbie here to who ran into the same problem. I figured my way out of it and I can give you the "how-to", but not the "why?".

    system>administration.>software sources
    Under "Ubunutu Software" tab, check the box: Cannocial-supported Open Source software (main)

    A popup should come up telling you may need to reinstall software, but if you have recently done an update (which you probably had when trying to first upgrade), then never mind this message.

    Go to system>admin>update manager and try to upgrade again.

    If this doesn't work go back to to Software Sources and also check the box: Community-maintained Open Source software (I can't remember if I checked this or not, that is why I'm suggesting try this if the upgrade doesn't work)

    Hope this helps!

    -meanderingthoughts2

    Thanks for this! it got me down the right path to my natty --> oneiric upgrade. i had to do some other steps and a partial up, but eventually got to a full 11.10 working system

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •