Auto Updating the Package List for the Update Manager
Beginning with Linux Mint 13 Maya, I think, but also in LMDE, any user will sooner or later notice that the Update Manager doesn’t care to look for available upgrades on its own: it will always indicate “Your system is up to date” on the panel until you click on its icon and make it thus search for updates manually.
As it has been indicated on the thread “Useless auto update manager” a year ago, the solution is just a matter of installing a regular cron job that isn’t included in Mint by default for fear of blocking the apt cache. In my experience of running such a script on a daily basis in Nadia however, the locking never occurs… At least as long as you don’t install packages the whole day over .
The cron job is based on an extant one for apt-xapian-index, hence it is really gentle in its processor usage — in fact, you won’t even ever know when it runs. So feel free to copy the script to a daily cron job by pasting the content of the next section into:
…$ sudo gedit /etc/cron.daily/apt_update
After saving the new file, make it executable by:
…$ sudo chmod +x /etc/cron.daily/apt_update
Then, you just have to be patient until the next time an update will be available which the Update Manager will indicate to you with a nice icon in the way it ought to .
#!/bin/sh # /etc/cron.daily/apt_update (MagicMint) M0518 # Taken from apt-xapian-index CMD=/usr/local/bin/apt # ionice should not be called in a virtual environment # (similar to man-db cronjobs) egrep -q '(envID|VxID):.*[1-9]' /proc/self/status || IONICE=/usr/bin/ionice # Check if we're on battery if which on_ac_power >/dev/null 2>&1; then on_ac_power >/dev/null 2>&1 ON_BATTERY=$? # Here we use "-eq 1" instead of "-ne 0" because # on_ac_power could also return 255, which means # it can't tell whether we are on AC or not. In # that case, run update-a-x-i nevertheless. [ "$ON_BATTERY" -eq 1 ] && exit 0 fi # Download lists of new/upgradable packages if [ -x "$CMD" ] then if [ -x "$IONICE" ] then nice -n 19 $IONICE -c 3 $CMD update else nice -n 19 $CMD update fi fi
Tags: auto update manager, available packages list, Maya, LMDE, Nadia
Created: 1 year ago.
Last edited: 1 year ago.
Reviewed: 1 year ago.
Read 0 times.
|1 month ago||
|In LM 17.1 Rebecca, the Update Manager is working correctly again, so this script is no longer needed.|
|1 year ago||
This info is the closest Ive found to my problem, but its no help. My system just recently wont/cant update though it finds package files. "Could not download all repository indexes". Sorry for the whine.
Other tutorials from MagicMint
- Pimp up the touchpad of your notebook
- HOWTO Link Video Capture to Video Key
- HOWTO Replace Kernel Mode Hibernation by User Mode Variant Perfectly
- HOWTO Embellish the Boot Screen (grub2)
- Do you need to optimize your SSD?
- Some Help With Nemo’s Bulk Renaming
- HOWTO Make Folder (File) Sharing Work Under Rebecca
- HOWTO Upgrade or Install Linux Mint by Keeping Your Data and Settings