Corrupt all the .list!

Corrupt all the .list!

So I went through A little hiccup with my server recently where a couple of restarts caused (a lot) corrupted /list files in the dpkg manager lib. This can be found under “/var/lib/dpkg/info” and the error that shows up during “apt-get install” instances is:

(Reading database… 65%dpkg: unrecoverable fatal error, aborting: files list file for package ‘*package name*’ is missing final newline
E: Sub-process /usr/bin/dpkg returned an error code (2)
A package failed to install.

I figured that the best way to fix this was to do a complete re-install considering that every package had a corrupt list (or the first 6 to 8 that I had tried did). In the process of doig this, I figured I would check out the firmware for my SSD that I use as the main drive in this setup.

As it turns out, Kings has released a new firmware version in which the release note states:

“Resolves an issue where the drive becomes unresponsive after continuous usage for 2982 hours and 37 minutes without power cycle. Issue does not occur if drive is power cycled prior to the 2982 hour limit.”

This does not describe my situation, but it certainly explains why the data *may* have been corrupted. So needless to say that update destroyed all data on the SSD, this means that a fresh install was the only option I had. Good thing I keep backups.

Broken wordpress updater?

I had this issue after a recent format and install of my server software. I just noticed it now though, although if you pay attention to the number of time I post, well, it is self-explanatory.

I solved it after I read an article that spoke of the same issue, but focussed more on the ftp-user sh-tick.

The gist of the article has to deal with using ftp-user alongside httpd. This may raise some security issues like one commenter stated, but it is easier just to make your files (chown www-data:www-data) owned by the web server, you can do this only to the directory that holds your web documents and all is well. Your auto-updater built-in to wordpress is working again!