Troubleshooting ubuntu: dpkg: unrecoverable fatal error, aborting: files list file for package ‘linux-generic’ is missing final newline Rumi, September 15, 2023 If you ever encounter with such similar of an error (in my case it occurred on my Ubuntu 20 distro), you may apply the following process to get a fix. The error: Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages will be upgraded: apt apt-transport-https apt-utils dpkg libapt-inst2.0 libapt-pkg5.0 ntpdate oracle-java8-installer oracle-java8-set-default thermald 10 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/4,389 kB of archives. After this operation, 8,192 B of additional disk space will be used. Do you want to continue? [Y/n] Y Preconfiguring packages ... dpkg: unrecoverable fatal error, aborting: files list file for package 'linux-generic' is missing final newline E: Sub-process /usr/bin/dpkg returned an error code (2) Disclaimer: it worked for me, that doesn’t necessary means that would work same for you! However, you may give it a try. remove or move the missing file sudo rm /var/lib/dpkg/info/linux-generic.list Now you can again reinstall it sudo apt-get install linux-generic --reinstall or sudo dpkg --configure -a sudo apt update sudo apt upgrade (The later one worked, I suppose the first one should work as well) Related Administrations Configurations (Linux) dpkgFatal ErrorUbuntuUbuntu 20Unrecoverable
Reverse Proxy with Caching February 15, 2016 A Sample Nginx Reverse proxy configuration- an alternative to Varnish cache (kind of more simplistic)- user www-data; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { proxy_cache_path /cache levels=1:2 keys_zone=STATIC:10m inactive=24h max_size=1g; server { location / { proxy_pass http://127.0.0.1:8080; proxy_set_header Host $host; proxy_cache STATIC; proxy_cache_valid… Read More
Creating an Ubuntu Router May 16, 2013 Step 1 The setup Here is your Ubuntu serve box with two interfaces, eth0————-Internet eth2————-Internal Note: Your Internet is running using eth0. Step1: Install DHCP Server #apt-get install dhcp3-server Related Read More
Force stop xen vm using command line February 6, 2023July 8, 2023 Instructions Disable High Availability (HA) so you don’t run into issues. Log into the Xenserver host that is running your VM with issues via ssh or console via XenCenter. Run the following command to list VMs and their UUIDs xe vm-list resident-on=<uuid_of_host> First you can try just the normal shutdown… Read More