** Description changed:

  [Impact]
  * auto-apt fails to update its local database of package information.
-   - Due to this, auto-apt is unusable in Trusty (and Saucy).
+   - Due to this, auto-apt is unusable in Trusty (and Saucy).
  * The new version 0.3.24 fixes this bug, LP: #1300987 and a dpkg warning 
about an
-   obsolete argument.
+   obsolete argument.
  
  [Test Case]
  * Run the commands 'sudo auto-apt update' and 'sudo auto-apt updatedb'.
-   - With version 0.3.23, the local database is not updated and the commands 
print
-     'put: 0 files, 0 entries done (xx seconds)' or similar.
-   - With the news version 0.3.24, the local database is successfully updated. 
The
-     commands take a lot more time to complete and display more output.
+   - With version 0.3.23, the local database is not updated and the commands 
print
+     'put: 0 files, 0 entries done (xx seconds)' or similar.
+   - With the new version 0.3.24, the local database is successfully updated. 
The
+     commands take a lot more time to complete and display more output.
  
  [Regression Potential]
  * auto-apt is already non-functional in Trusty (and Saucy), therefore there 
is no
-   regression potential.
+   regression potential.
  
  [Other Info]
  * The original bug report for Saucy follows:
  
  1)Description: Ubuntu 13.10
  Release: 13.10
  
  Note: Actually Kubuntu 13.10
  
  2)auto-apt:
    Installed: 0.3.23
    Candidate: 0.3.23
    Version table:
   *** 0.3.23 0
          500 http://md.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
          100 /var/lib/dpkg/status
  
  3) $ sudo auto-apt update
       $ sudo auto-apt updatedb
  Both commands should update the databases
  
  4) $ sudo auto-apt update
       $ sudo auto-apt updatedb
  Both commands  output:
  put: 0 files, 0 entries done (xx seconds)
  where xx is about 10 seconds.
  And, no update is performed.
  
  5) The bug is caused by line 145 in /usr/bin/auto-apt
   sed -ne 
's=^[[:space:]][[:space:]]*deb[[:space:]][[:space:]]*\([^:[:space:]]*\):\([^[:space:]]*\)[[:space:]][[:space:]]*\([^[:space:]]*\)[[:space:]][[:space:]]*.*=\1
 \2/dists/\3=p' |
  
  i.e. by the one trailing space in the beginning ^[[:space:]][[:space:]]*deb
  At least my /etc/apt/sources.list doesn't contain any trailing spaces, which 
causes the sed to return 0 sources and no update is performed by auto-apt.
  
  6) A workaround (or maybe a fix) is to delete the first trailing space 
[[:space:]] so the line should look like
  sed -ne 
's=^[[:space:]]*deb[[:space:]][[:space:]]*\([^:[:space:]]*\):\([^[:space:]]*\)[[:space:]][[:space:]]*\([^[:space:]]*\)[[:space:]][[:space:]]*.*=\1
 \2/dists/\3=p' |

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

Title:
  auto-apt update and updatedb commands fail on 0.3.23

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to