fail to update the cache

Bug #730013 reported by Amine Brikci-N
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
command-not-found
Incomplete
Undecided
Unassigned
Debian
Fix Released
Unknown

Bug Description

On aptosid, update-command-not-found (run as root) gives the following error:

I: Writing data for oscar.aptosid.com_debian_dists_sid_Contents-i386.gz ...
Traceback (most recent call last):
  File "/usr/sbin/update-command-not-found", line 95, in <module>
    write_db_apt_file()
  File "/usr/sbin/update-command-not-found", line 72, in write_db_apt_file
    write_db_core(fobj)
  File "/usr/sbin/update-command-not-found", line 51, in write_db_core
    section, package = package.strip().rsplit('/', 1)
ValueError: need more than 1 value to unpack

So the cache won't be updated and typing an unknowed command in bash gives the following error:

Could not find the database of available applications, run update-command-not-found as root to fix this

description: updated
tags: added: aptosid command-not-found debian
Changed in debian:
status: Unknown → New
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Hi, thansk for this report.

What is update-command-not-found?
What is aptosid?

Changed in command-not-found:
status: New → Incomplete
Revision history for this message
derBert (ffh) wrote :

Hi,

update-command-not-found build's the database used by command-not-found.
aptosid is a debian-sid-based linux, almost pure debian sid with only some packages mainly for painless rolling release usage of newest debian packages directly from the debian repositories.
command-not-found in the debian repos comes from ubuntus package.

The attached patch works for me (aptosid with recent command-not-found, version 0.2.38-1, also recent in debian wheezy)

cheers
derBert

Revision history for this message
Zygmunt Krynicki (zyga) wrote : Re: [Bug 730013] Re: fail to update the cache

Thanks.

I'll apply that patch next week, I'm packing and moving now :-)

Best regards
ZK

On Sun, Jan 12, 2014 at 4:15 PM, derBert <email address hidden> wrote:

> Hi,
>
> update-command-not-found build's the database used by command-not-found.
> aptosid is a debian-sid-based linux, almost pure debian sid with only some
> packages mainly for painless rolling release usage of newest debian
> packages directly from the debian repositories.
> command-not-found in the debian repos comes from ubuntus package.
>
> The attached patch works for me (aptosid with recent command-not-found,
> version 0.2.38-1, also recent in debian wheezy)
>
> cheers
> derBert
>
> ** Patch added: "update-command-not-found.patch"
>
> https://bugs.launchpad.net/command-not-found/+bug/730013/+attachment/3946948/+files/update-command-not-found.patch
>
> --
> You received this bug notification because you are subscribed to
> command-not-found.
> https://bugs.launchpad.net/bugs/730013
>
> Title:
> fail to update the cache
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/command-not-found/+bug/730013/+subscriptions
>

Changed in debian:
status: New → 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.