Skip to main content

Posts

Showing posts with the label Ubuntu

Solution of Error Message: "Ignoring file 'XXXXXXXXXXXX.save' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension"

While using Ubuntu 20.04, I've encountered the warning in the subject line of this post after using update command in terminal. I think it is about some compatibility problem with the sources added after Ubuntu setup.  I tried to get rid of that message deleting all the ".save" files in /etc/apt/sources.list.d/ directory. But no way... After first use of update command, they have been created again.  After a little research, I found a solution as a workaround. Writing the below command hides the warning message forever:  sudo sh -c "echo 'Dir::Ignore-Files-Silently:: \"(.save|.distupgrade)$\";' > /etc/apt/apt.conf.d/99ignoresave"

Error: Sub-process /usr/bin/dpkg returned an error code (1)

When a process locks the debconf config.dat file, you may get this error.  The solution of this error is identifying the process and killing it. You can find the guilty process wtih this command:  sudo fuser -v /var/cache/debconf/config.dat You will get an PID on the screen. And you can use this PID in the following command: sudo kill THAT_PID_NUMBER_GOT_ABOVE_COMMAND or you can just use the following code to kill the process without seeing PID number: sudo fuser -v -k /var/cache/debconf/config.dat All these info has been taken from askubuntu community .

What to do If Your Keyboard's AltGR Key is Broken

AltGr Key A little water has been spilled on my laptop's keyboard. And just one key has been broken now. AltGr key... My keyboard is Turkish Q setup. AltGr key is important for following characters: ₺ # $ € @ { } [ ] \ | ~  If you use Windows, you can use CTRL+ALT key combination. It behaves same as AltGr key. Or you can use alt codes. For instance while pressing ALT key, press 64 on numpad. With this combination, you can write @ character on the screen. These two solutions are very efficient for Windows operating system.  On Ubuntu, you can't use alt codes while pressing ALT key. Because ALT key has some other shortcut duties for productivity. You can't use CTRL+ALT combination too.  So, thinked about today. How can i write those special characters. Of course researched about it. And found a solution.  There ise an application in Ubuntu Software store. "GnomeTweaks" First install it. Then run it.  Go to keyboard and mouse section. Go to additional options. Find...

How to Stop File System Check on Every Boot in Ubuntu

While determining the default OS to boot, I have edited too much files. May be I did a wrong thing. Now I realised that on every boot, Ubuntu splash screen says there is a file system check. This bothered me. After a little research, found a solution.  You need to edit fstab file in /etc/fstab . Open the file using this command:  sudo nano /etc/fstab Pay attention the uncommented lines. At the end of each line there is a parameter "0" or "1" or "2". 0: force the system not to do  a file system check 1: force the system to do a file system check at every boot 2: force the system to do a just one file system check at the next first boot I've change the parameters to "0" and reboot.  Voila! There is no "file system check" warning at boot.

Modifying UEFI & GRUB Settings to Determine Default OS

This is for the people who wants to change the UEFI and/or GRUB2 configuration. Why? To change boot order or to set default operating system to boot.  I have a laptop which is installed an SSD and a SATA HDD. SSD for Windows 10 (without SSD, working with Windows is like going somewhere on a turtle) and sata HDD for Ubuntu 20.04.  I don't know why, Windows take the charge of booting process. It boots without asking me. But I want my pc to ask me which OS should be booted, and if I do not give it an input, it should boot Windows. I can be able to choose Ubuntu whenever I want. Because of my wife, my system should be set up as default operating system is Windows. If you do not an input, computer should boot up into Windows. Because she has some difficulties with linux systems.  How to Solve This? First it is needed to force the pc to boot into Ubuntu. And Ubuntu should ask which OS should be booted (because Windows never asks this or I do not know how to make it as...

A Solution to Play Some Streaming Videos Which Do Not Play on Ubuntu

While using Ubuntu, the last version, you may encounter that everything works perfect on YouTube. But if you encountered some streaming videos can not be played on some sites in Ubuntu, now you have a solution. Ubuntu needs a video library to be installed  to play all the videos on all ths web sites. Installing  "libavcodec-extra"  package in package manager or using following command in terminal solves this issue:  < sudo apt install libavcodec-extra >