Problems Updating Lubuntu 12.04, 12.10, and 13.04 on Slow Machines

Gerry gerry.gazules at
Sat Apr 20 11:26:50 UTC 2013

On 04/20/2013 05:56 AM, Jonathan Marsden wrote:
> Aere,
> On 04/19/2013 12:23 PM, Aere Greenway wrote:
>> sudo apt-get update
>> sudo apt-get dist-upgrade
> Better to do this as one line with && between the two commands, since if
> the first fails, the second is usually rather pointless... so
>    sudo apt-get update && sudo apt-get dist-upgrade
>> The first problem, is that while I was doing the first command, the
>> system was trying to find out if updates were available, so it had
>> ownership of a lock that the "apt-get update" command needed.  This
>> resulted in the first step not successfully completing.
> If you typed them on one line as I suggest, you can just close Update
> Manager and then use uparrow and Enter to re-run the command line.
> If you know you will always use the command line approach, you can also
> prevent the Update Manager from running automatically, perhaps by
>    rm /etc/xdg/autostart/update-notifier-desktop
> If you want a semi-GUI approach to starting your updates, create a shell
> script that does
>    gksudo "bash -c 'apt-get update && apt-get dist-upgrade -y'"
> in ~/Desktop, and use that instead.
>> To get it to work, I had to run the update-manager GUI to where it
>> reported the updates available, but use the "Remind Me Later" button
>> to dismiss it.  At that point, I could (in the terminal window) do
>> the "apt-get dist-upgrade" command.
> Seems unnecessarily complicated.  Just use the command line tools,
> wrapped in gksudo if desired.
>> The second problem, was that after doing the "apt-get dist-upgrade",
>> the CPU was still 100% busy for quite awhile (a minute?) afterwards
>> even though control had returned to the command prompt.  I entered
>> the "top" command, and it showed there was a root process, named
>> something like "update-xapi-index".
> update-xapian-index.  If you do not want this indexing to happen, you
> can remove the relevant package, which is libxapian22 in 12.04, so
>    sudo apt-get purge libxapian22
> This will also remove synaptic, but since you are using command line
> tools for package management now, maybe that is OK for you on this
> machine anyway.  This a bug report about how much of a hog the
> update-xapian-index process is on low RAM machines, but it has been
> there a while, and remains un-fixed, so getting rid of it is probably
> more practically useful than waiting for the bug to be fixed :)
> Jonathan
> I'm not sure if this is relevant to this post but I use Byobu terminal utility to check for updates for my installation. It's neccessary to set the options using F9. I believe there's also a facility to store sequences of commands. Byobu is available in the Lubuntu repository.  Gerry

More information about the Lubuntu-users mailing list