slocate 3.1-1ubuntu2 doesn't install due to dependencies

Bug #148346 reported by Bremm
4
Affects Status Importance Assigned to Milestone
slocate (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

slocate claims about 2 missing files here, during apt-get upgrade.

Preparando para substituir slocate 3.1-1ubuntu1 (usando .../slocate_3.1-1ubuntu2_amd64.deb) ...
rm: imposível remover `/usr/bin/locate': Arquivo ou diretório inexistente
dpkg: erro processando /var/cache/apt/archives/slocate_3.1-1ubuntu2_amd64.deb (--unpack):
 subprocesso pre-installation script retornou código de saída de error 1
Erros foram encontrados durante processamento de:
 /var/cache/apt/archives/slocate_3.1-1ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

and

Preparando para substituir slocate 3.1-1ubuntu1 (usando .../slocate_3.1-1ubuntu2_amd64.deb) ...
Removendo `diversion of /usr/bin/locate to /usr/bin/locate.notslocate by slocate'
rm: imposível remover `/usr/bin/updatedb': Arquivo ou diretório inexistente
dpkg: erro processando /var/cache/apt/archives/slocate_3.1-1ubuntu2_amd64.deb (--unpack):
 subprocesso pre-installation script retornou código de saída de error 1
Erros foram encontrados durante processamento de:
 /var/cache/apt/archives/slocate_3.1-1ubuntu2_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)

So i did:

$ sudo touch /usr/bin/locate
$ sudo touch /usr/bin/updatedb

As a workaround.

Revision history for this message
Kees Cook (kees) wrote :

Thanks for your report! Can you reproduce this error if you attempt to re-install slocate? I have not been able to see this problem.

Changed in slocate:
status: New → Incomplete
Revision history for this message
Bremm (bremm) wrote : Re: [Bug 148346] Re: slocate 3.1-1ubuntu2 doesn't install due to dependencies

2007/10/3, Kees Cook <email address hidden>:
> Thanks for your report! Can you reproduce this error if you attempt to
> re-install slocate? I have not been able to see this problem.
>
> ** Changed in: slocate (Ubuntu)
> Status: New => Incomplete

slocate clamed for 'locate' and 'updatedb', but these files are from
'locate' package, not 'secure locate' package. I never used/installed
'locate' here on Xubuntu, I'd used it in a older Debian and I can't
understand why 'slocate' needs files from 'locate' to update itself
just with this version.

I think you can't see with reinstall procedures. Pay attention to
"remove diversion", because it failed in the first time with files
'locate' and 'updatedb'. So I "touched" two fake files (zero byte
files) just to 'slocate' doesn't stuck during the instalation process.
On the reinstall time (below) this workaround wasn't needed.

$ LANG=C sudo apt-get install --reinstall slocate
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 2 not upgraded.
Need to get 0B/32.8kB of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?
(Reading database ... 216998 files and directories currently installed.)
Preparing to replace slocate 3.1-1ubuntu2 (using
.../slocate_3.1-1ubuntu2_amd64.deb) ...
Removing `diversion of /usr/bin/locate to /usr/bin/locate.notslocate by slocate'
Removing `diversion of /usr/bin/updatedb to
/usr/bin/updatedb.notslocate by slocate'
Removing `diversion of /usr/share/man/man1/updatedb.1.gz to
/usr/share/man/man1/updatedb.notslocate.1.gz by slocate'
Removing `diversion of /usr/share/man/man1/locate.1.gz to
/usr/share/man/man1/locate.notslocate.1.gz by slocate'
Removing `diversion of /etc/cron.daily/find to
/etc/cron.daily/find.notslocate by slocate'
Adding `diversion of /usr/bin/locate to /usr/bin/locate.notslocate by slocate'
Adding `diversion of /usr/bin/updatedb to /usr/bin/updatedb.notslocate
by slocate'
Adding `diversion of /usr/share/man/man1/locate.1.gz to
/usr/share/man/man1/locate.notslocate.1.gz by slocate'
Adding `diversion of /usr/share/man/man1/updatedb.1.gz to
/usr/share/man/man1/updatedb.notslocate.1.gz by slocate'
Adding `diversion of /etc/cron.daily/find to
/etc/cron.daily/find.notslocate by slocate'
Unpacking replacement slocate ...
Setting up slocate (3.1-1ubuntu2) ...

Thanks for the reply and be free to ask me more about this if you wish.
--
Márcio Bremm -- http://vtnc.org/

Pessoas não mudam, apenas mascaram sua real identidade.
People don't change, only mask their real identity.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

Could it be the same problem as described in bug 157661 ?

Changed in slocate:
assignee: nobody → andreas-wenning
Revision history for this message
Bremm (bremm) wrote :

2007/12/18, awen <email address hidden>:
> Could it be the same problem as described in bug 157661 ?

I guess not. At least, error messages aren't the same and complain
about distinct files.
--
Márcio Bremm -- http://vtnc.org/

Pessoas não mudam, apenas mascaram sua real identidade.
People don't change, only mask their real identity.

Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

My french isn't the best, so was a little hard to see. But the other bug also complains about 'diversion of /usr/bin/locate to /usr/bin/locate.notslocate by slocate' and ends with 'E: Sub-process /usr/bin/dpkg returned an error code (1)'; and a reinstall of slocate also fixes the problem.

Am I right, that the package wasn't installed properly until you made the workaround?

Revision history for this message
Bremm (bremm) wrote :

2007/12/18, awen <email address hidden>:
> My french isn't the best, so was a little hard to see.

It's Portuguese, but never mind. :)

> Am I right, that the package wasn't installed properly until you made
> the workaround?

Exactly. Maybe it was released another version fixed (I remember
something about because often I do the updates by command line), but I
wouldn't wait the maintainer to fix it up if I could do that
workaround. Unfortunatelly slocate was stucking all updates that time.
--
Márcio Bremm -- http://vtnc.org/

Pessoas não mudam, apenas mascaram sua real identidade.
People don't change, only mask their real identity.

Changed in slocate:
assignee: andreas-wenning → nobody
Revision history for this message
Andreas Wenning (andreas-wenning) wrote :

This bug report is being closed due to your last comment regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at [WWW] https://wiki.ubuntu.com/Bugs/Status . Thank you again for taking the time to report this bug and helping to make Ubuntu better. Feel free to submit any future bugs you may find.

Changed in slocate:
status: Incomplete → Invalid
status: Invalid → 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.