Absolutely Tech

[SOLVED] “Ignoring file ‘.distUpgrade’ / ‘.save’ in directory ‘/etc/apt/sources.list.d/’ as it has an invalid filename extension” on Ubuntu 10.10

Recently apt-get update started throwing notices which read:

Ignoring file 'opera.list.distUpgrade' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
Ignoring file 'opera.list.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension

It occured because sources.list.d directory isn’t supposed to contain files with .distupgrade and .save extensions, but since I upgraded my distribution from 10.04, backup copies of the source files were made with .distUpgrade appended to them. Similarly .save files were not supposed to be in the directory which made it throw this error. Fortunately you can suppress this error by executing the following command:

sudo sh -c "echo 'Dir::Ignore-Files-Silently:: \"(.save|.distupgrade)$\";' > /etc/apt/apt.conf.d/99ignoresave"

This will suppress the error. Next time you run sudo apt-get update you wouldn’t see those errors.

UPDATE: Apt 0.8.8 seems to have fixed the issue as mentionedby _khAttAm_ in comments. You can install it from Unstable repositories.

Cheers!

Google Sputnik Test – Opera 10.6 vs. Firefox 3.6.6 vs. Google Chrome 5.0.375.86 on Ubuntu

I was free, so just decided to see how browsers compare on Google’s sputnik test. Its a test about javascript conformance. Well, here’s the introduction from site:

Sputnik is a JavaScript conformance test suite containing over 5000 tests. It tests how well a JavaScript implementation adheres to the ECMA-262 specification version 5, looking only at those features that were also present in the previous version, version 3, and not the new features added in version 5.

So, in essence its a test which checks how complete a browser’s javascript engine is and how well does it complies to standards.

I decided to test:
Mozilla Firefox 3.6.6
Google Chrome 5.0.375.86 and
Opera 10.60

All the browsers used for test were clean installs on Ubuntu Maverick Meerkat Alpha. Read the rest of this entry »

[HOWTO] Reset MySQL root password on Ubuntu when you’ve forgotten it

To err is human. Humans forget things, MySQL root password is one of those things. However, its not very difficult to reset the root password if you have root access to the machine.

The tutorial does seem a bit long because of all the alternate ways to kill and start the mysqld, but trust me its simple.

Here’s in short what we will be going to do:

  • Step 1: Stop mysql server process
  • Step 2: Start mysqld with --skip-grant-tables option.
  • Step 3: Run mysql without any parameters.
  • Step 4: Change the root admin password (old password not required.)
  • Step 5: Close mysql and restart mysql server.

And here are the detailed instructions to reset MySQL root password: Read the rest of this entry »

[SOLVED] Media Playing issues in VLC in Ubuntu 10.10 Maverick Meerkat

I had problems with playing media files in VLC in Maverick Meerkat. Other players (SMPlayer) seemed to work fine. VLC gave errors like:

“No suitable decoder module: VLC does not support the audio or video format “XVID”. VLC Unfortunately there is no way for you to fix this.”

And

“No suitable decoder module: VLC does not support the audio or video format “H264”. VLC Unfortunately there is no way for you to fix this.”

Found this solution written by my friend khattam but it didn’t solve my issue. It still gave errors.

I solved the errors after removing libavutil-extra-49, libavutil-extra-50 and installing libavutil50, libavutil49.

sudo apt-get install libavutil50 libavutil49

This will automatically remove the libavutil-extra-49 and libavutil-extra-50 and install libavutil50 and libavutil49 over it. It solved the issue for me.

Click here if this doesn’t solve your issue.

Cheers!