Better error message when can't write to ~/.cache/ubuntuimages

Bug #1284732 reported by Andrew Starr-Bochicchio
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
goget-ubuntu-touch (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

When the SDK had previously been used for an aborted attempt to create an emulator, ~/.cache/ubuntuimages is owned by root. This causes latter attempts to create an emulator using the cli tool to fail with:

$ sudo ubuntu-emulator create test1
Creating "test1" from devel-proposed revision 207
Downloading...
Cannot download {3e92338ddb8cdfac7ad03e880f546e4c394a6eeaa23a972475407e269e212eb1 /devel-proposed/goldfish/version-207.tar.xz /devel-proposed/goldfish/version-207.tar.xz.asc %!s(int=352) %!s(int=2)}

A better error message should be provided.

ProblemType: Bug
DistroRelease: Ubuntu 14.04
Package: ubuntu-emulator 0.2+14.04.20140224-0ubuntu1
ProcVersionSignature: Ubuntu 3.13.0-11.31-generic 3.13.3
Uname: Linux 3.13.0-11-generic x86_64
ApportVersion: 2.13.2-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Tue Feb 25 11:58:45 2014
InstallationDate: Installed on 2013-03-16 (345 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130316)
SourcePackage: goget-ubuntu-touch
UpgradeStatus: Upgraded to trusty on 2013-12-07 (80 days ago)

Related branches

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :
Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Still getting the same error with newer images:

$ sudo ubuntu-emulator create test1
Creating "test1" from devel-proposed revision 227
Downloading...
Cannot download {a733bc35819e534b914dd8ee50673b7293073a9d84ba685d9856ba998b323841 /devel-proposed/goldfish/version-227.tar.xz /devel-proposed/goldfish/version-227.tar.xz.asc %!s(int=352) %!s(int=2)}

Revision history for this message
Andrew Starr-Bochicchio (andrewsomething) wrote :

Still happening post change from goldfish to generic

$ policy ubuntu-emulator
ubuntu-emulator:
  Installed: 0.2+14.04.20140310-0ubuntu1
  Candidate: 0.2+14.04.20140310-0ubuntu1
  Version table:
 *** 0.2+14.04.20140310-0ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ trusty/universe amd64 Packages
        100 /var/lib/dpkg/status

$ sudo ubuntu-emulator create test1
Creating "test1" from devel-proposed revision 236
Downloading...
Cannot download {2af39677dc8c66d8998e1c7d6ecefc3e01f3f3709dc7578a397a3898919a6231 /devel-proposed/generic/version-236.tar.xz /devel-proposed/generic/version-236.tar.xz.asc %!s(int=352) %!s(int=2)}

description: updated
summary: - Unable to download image
+ Better error message when can't write to ~/.cache/ubuntuimages
Changed in goget-ubuntu-touch (Ubuntu):
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package goget-ubuntu-touch - 0.2+14.04.20140416.2-0ubuntu1

---------------
goget-ubuntu-touch (0.2+14.04.20140416.2-0ubuntu1) trusty; urgency=low

  [ Sergio Schvezov ]
  * ubuntu-device-flash: remove previous failed flashing artifacts and
    if still not enough space, fail with an error message with the
    amount of available space on the target (LP: #1301303)
  * ubuntu-emulator: providing a better error message on download
    failures (LP: #1284732)
  * ubuntu-emulator & ubuntu-device-flash: use the new channel names by
    default

  [ Jani Monoses ]
  * ubuntu-device-flash: allow doing a --list-channels without adb
    connected.
  * ubuntuimage: allow disabling the verification of TLS certificates.
 -- Ubuntu daily release <email address hidden> Wed, 16 Apr 2014 19:11:24 +0000

Changed in goget-ubuntu-touch (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.