[Bug 1267564] [NEW] etckeeper with git breaks upgrade from Precise to Trusty

Tuomas Suutari 1267564 at bugs.launchpad.net
Thu Jan 9 18:30:16 UTC 2014


Public bug reported:

I tried to upgrade Ubuntu 12.04 Precise system to 14.04 Trusty (alpha)
with "do-release-upgrade -d". I had etckeeper installed and configured
to use Git. The upgrade failed at the very end, because etckeepers DPkg
::Post-Invoke hook failed. The reason was  that git user.name and
user.email were not configured, but this was not an issue before the
upgrade (i.e. apt/dpkg worked just fine).

It would be nice, if this kind of configuration issue was detected
before the upgrade.

<pre>
Running mktexlsr. This may take some time... done.
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf-2.index...

*** Please tell me who you are.

Run

  git config --global user.email "you at example.com"
  git config --global user.name "Your Name"

to set your account's default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'root at untamo.(none)')
Error in function:

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.

SystemError: E:Problem executing scripts DPkg::Post-Invoke 'if [ -x
/usr/bin/etckeeper ]; then etckeeper post-install; fi', E:Sub-process
returned an error code

No pending crash reports. Try --help for more information.

Could not install the upgrades

The upgrade has aborted. Your system could be in an unusable state. A
recovery will run now (dpkg --configure -a).

Upgrade complete

The upgrade has completed but there were errors during the upgrade
process.

To continue please press [ENTER]
</pre>

** Affects: etckeeper (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  I tried to upgrade Ubuntu 12.04 Precise system to 14.04 Trusty (alpha)
  with "do-release-upgrade -d". I had etckeeper installed and configured
  to use Git. The upgrade failed at the very end, because etckeepers DPkg
  ::Post-Invoke hook failed. The reason was  that git user.name and
  user.email were not configured, but this was not an issue before the
  upgrade (i.e. apt/dpkg worked just fine).
+ 
+ It would be nice, if this kind of configuration issue was detected
+ before the upgrade.
  
  <pre>
  Running mktexlsr. This may take some time... done.
  Processing triggers for bamfdaemon ...
  Rebuilding /usr/share/applications/bamf-2.index...
  
  *** Please tell me who you are.
  
  Run
  
-   git config --global user.email "you at example.com"
-   git config --global user.name "Your Name"
+   git config --global user.email "you at example.com"
+   git config --global user.name "Your Name"
  
  to set your account's default identity.
  Omit --global to set the identity only in this repository.
  
  fatal: unable to auto-detect email address (got 'root at untamo.(none)')
- Error in function: 
+ Error in function:
  
  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. 
+ 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.
  
- SystemError: E:Problem executing scripts DPkg::Post-Invoke 'if [ -x 
- /usr/bin/etckeeper ]; then etckeeper post-install; fi', E:Sub-process 
- returned an error code 
- 
+ SystemError: E:Problem executing scripts DPkg::Post-Invoke 'if [ -x
+ /usr/bin/etckeeper ]; then etckeeper post-install; fi', E:Sub-process
+ returned an error code
  
  No pending crash reports. Try --help for more information.
  
  Could not install the upgrades
  
- The upgrade has aborted. Your system could be in an unusable state. A 
- recovery will run now (dpkg --configure -a). 
+ The upgrade has aborted. Your system could be in an unusable state. A
+ recovery will run now (dpkg --configure -a).
  
+ Upgrade complete
  
- Upgrade complete 
- 
- The upgrade has completed but there were errors during the upgrade 
- process. 
+ The upgrade has completed but there were errors during the upgrade
+ process.
  
  To continue please press [ENTER]
  </pre>

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to etckeeper in Ubuntu.
https://bugs.launchpad.net/bugs/1267564

Title:
  etckeeper with git breaks upgrade from Precise to Trusty

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



More information about the Ubuntu-server-bugs mailing list