How-to fix “Warning: No support for locale: en_US.utf”


When doing an update, I got the warning below:

update-initramfs: Generating /boot/initrd.img-4.0.9-040009-generic
Warning: No support for locale: en_US.utf8


user@machine $ ls /usr/lib/locale/
C.UTF-8 locale-archive
user@machine $ sudo locale-gen –purge –no-archive
Generating locales…
en_AG.UTF-8… done
en_AU.UTF-8… done
en_BW.UTF-8… done
en_CA.UTF-8… done
en_DK.UTF-8… done
en_GB.UTF-8… done
en_HK.UTF-8… done
en_IE.UTF-8… done
en_IN.UTF-8… done
en_NG.UTF-8… done
en_NZ.UTF-8… done
en_PH.UTF-8… done
en_SG.UTF-8… done
en_US.UTF-8… done
en_ZA.UTF-8… done
en_ZM.UTF-8… done
en_ZW.UTF-8… done
om_KE.UTF-8… done
Generation complete.
user@machine $ ls /usr/lib/locale/
C.UTF-8 en_AU.utf8 en_CA.utf8 en_GB.utf8 en_IE.utf8 en_NG en_PH.utf8 en_US.utf8 en_ZM om_KE.utf8
en_AG en_BW.utf8 en_DK.utf8 en_HK.utf8 en_IN en_NZ.utf8 en_SG.utf8 en_ZA.utf8 en_ZW.utf8


How-to fix “Warning: No support for locale: en_US.utf”

apt-get warning: No support for locale: en_US.utf8

apt-get warning: No support for locale: en_US.utf8

Linux Mint: “Warning: No support for locale: en_US.UTF-8” in update-initramfs

mintUpdate warns: software can’t be authenticate


Got the above error when updating 2 packages. My initial solution was to ignore the suspicious update. Then today, I got the warning when trying to update firefox.


Apparently there seems to have been or there is a problem with the default US mirrors so I changed to different mirrors in Menu -> Administration -> Software Sources and did an update, well actually cleaned out the others and then did an update and this worked as follows:

user@machine $ sudo apt-get clean
user@machine $ sudo mv lists lists.old
user@machine $ sudo mkdir -p lists/partial
user@machine $ sudo apt-get clean
user@machine $ sudo apt-get update


New Mint 12 install, lots of ‘not authenticated’ errors

How do I fix APT errors “W: Failed to fetch […] Hash Sum mismatch”?

Failed to fetch” Error When Upgrading Ubuntu? Try this


3 sec less Web Response Times

Research has it that a high % of users will drop a transaction if the webpage loads takes longer than 3 seconds. The distance between the user and the content is sometimes to blame.

Edge computing and caching is one of the methods content providers are employing in order to serve their users almost as if they were in the same location. At its simplest definition, it the process by which content is stored in a server that is closest to the user.

This would explain why Videos on youtube for example, load faster than those of other content providers i.e. if you are located near one of Google’s Edge Point of Presence.

Akamai’s Edge Server and Content Caching are also major players in this domain. They claim to have deployments in almost every part of the world.

Carbon60 say that they also haven’t been left behind in this race.


Yes, Buyology, its not a typo. Apparently, it seems it might have been first coined by this title. Haven’t done my research on that claim though, so take it with a pinch of salt.

Now the reason I brought it up is, there is a website. The idea is, product and service providers can get feedback, anonymous that is, on how they are serving their customers  and clients. Then anyone else can sign-up and you get a job to shop or experience a service and you report back your feedback and this is passed onto the client anonymously. The condition for getting a job could be based on the clients’ target demographics.

Python keep running total in a for-loop


From a file, mbox-short.txt, the task was to search for a String in a file, extract decimals, count number of times the line appears and then get the average of the decimals.


I had a challenge keeping the running total after each iteration.


initiate a variable called total and then add total to the decimal number found after each iteration and at the end you’ll have the sum of the decimal numbers.


Here’s the code:

#!/usr/bin/env python
# Use the file name mbox-short.txt as the file name
filename = raw_input("Enter file name: ")
    filehandler = open(filename)
    print 'The filename does not exist:',filename
count = 0
total = 0
for line in filehandler:
    #strip whitespace that is new lines
    line = line.rstrip()
    #ignore lines that dont match the below
    if not line.startswith("X-DSPAM-Confidence:") : continue
    #Extract No. Convert and Calculate
    float_number = line[20:]
    number = float(float_number)
    total = total + number
    count = count + 1
average = total / count
print 'Average spam confidence:',average