How to remove the packages causing GPG error at once

So there are two PPA causing GPG warning during sudo apt update

W: GPG error: https://brave-browser-apt-release.s3.brave.com bionic InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4FE13824E3FFC656 E: The repository 'https://brave-browser-apt-release.s3.brave.com bionic InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. W: GPG error: http://repository.spotify.com stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4773BD5E130D1D45 E: The repository 'http://repository.spotify.com stable InRelease' is not signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details. 

I want to remove these PPA from my system how to do that at once?

grep -r 'repository.spotify.com ' /etc/apt 

Ouput

/etc/apt/sources.list.d/spotify.list:deb http://repository.spotify.com stable non-free   grep -r 'brave-browser-apt-release.s3.brave.com' /etc/apt 

Output

/etc/apt/sources.list.d/brave-browser-release-bionic.list:deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main /etc/apt/sources.list.d/brave-browser-release-bionic.list.save:deb [arch=amd64] https://brave-browser-apt-release.s3.brave.com/ bionic main 

Gnome and unity alt-tab showing at once

I recently upgraded from Ubuntu 16.04 to 18.04, and I don’t like Gnome so I use Unity. However, when I Alt-tab, both alt-tabs show at the same time (sorry for poor image quality). The tab button works for both, and they seem to be working on top of each other, and so there’s really no point in me using alt-tab.

I can provide any extra information if necessary, but I don’t really know what’s necessary.

Display name of taxonomy once

What’s the best way to only show the name of a taxonomy once? I use a taxonomy called show_category that has three categories: News, Reviews and Uncategorized. I have six posts: three in News, one in reviews and two in uncategorized. They are displayed as the following:

News (name of category in taxonomy) News item 1 News (name of category in taxonomy) News item 2 News (name of category in taxonomy) News item 3 Reviews (name of category in taxonomy) Review item Uncategorized (name of category in taxonomy) tes Uncategorized (name of category in taxonomy) test 2

I’m looking for a way to only the name of category in a taxonomy only once like this:

News (name of category in taxonomy) News item 1 News item 2 News item 3 Reviews (name of category in taxonomy) Review item Uncategorized (name of category in taxonomy) Tes Test 2

Code of my loop:

<?php $  postcount=0; while ( have_posts() ) : the_post();  $  terms = wp_get_post_terms( get_the_ID(), 'show_category'); foreach ($  terms as $  t): echo $  t->name; endforeach;?> <div id="<?php the_ID(); ?>" <?php post_class(); ?>> <?php the_title();?> </div> <?php endwhile; ?> 

How can I get *ALL* the info for available packages in apt at once?

I would like to get the details about all the available packages in apt without installing them. I know that apt-cache search . would give me the list and description of all the available packages. However, I’m interested in the same list but with the most recent version. Is it possible?

I also know that I can loop over the package names and run apt-cache show pkgName, but I do not want to make multiple queries to apt-cache. I want to query it only once or use another tool or another available resource that could give me this info.

Impossible to run texstudio once installed

I’m running a fresh new installed Ubuntu 18.04.3. So my problem is: when I install texstudio with terminal in the usual way everything seems to run smoothly:

zosiah@zosiah-HP-255-G6-Notebook-PC:~$   sudo apt install texstudio [sudo] password for zosiah:  Reading package lists... Done Building dependency tree        Reading state information... Done The following package was automatically installed and is no longer required:   libqt5concurrent5 Use 'sudo apt autoremove' to remove it. The following additional packages will be installed:   texstudio-l10n Suggested packages:   latex-beamer The following NEW packages will be installed:   texstudio texstudio-l10n 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/5.775 kB of archives. After this operation, 16,5 MB of additional disk space will be used. Do you want to continue? [Y/n] y (Reading database ... 365865 files and directories currently installed.) Preparing to unpack .../texstudio_2.12.6+debian-2_amd64.deb ... Unpacking texstudio (2.12.6+debian-2) ... Selecting previously unselected package texstudio-l10n. Preparing to unpack .../texstudio-l10n_2.12.6+debian-2_all.deb ... Unpacking texstudio-l10n (2.12.6+debian-2) ... Setting up texstudio (2.12.6+debian-2) ... Setting up texstudio-l10n (2.12.6+debian-2) ... Processing triggers for desktop-file-utils (0.23-1ubuntu3.18.04.2) ... Processing triggers for man-db (2.8.3-2ubuntu0.1) ... Processing triggers for gnome-menus (3.13.3-11ubuntu1.1) ... Processing triggers for hicolor-icon-theme (0.17-2) ... Processing triggers for mime-support (3.60ubuntu1) ... 

but when I try to run texstudio terminal says:

zosiah@zosiah-HP-255-G6-Notebook-PC:~$   texstudio texstudio: error while loading shared libraries: libdouble-conversion.so.1: cannot open shared object file: No such file or directory 

I’ve been googling around for a while but I’ve not arrived to a solution… Any idea? P.S. I’m not being able to install texmaker and emacs25, too. This thing sounds to me pretty strange because until now I’ve never had such problem neither wit synaptic nor with apt and so on… What could be the matter?

Does a multiclassing with the Master of Many Styles and Free Style Fighter allow more active stances at once?

Both Master of Many Style and Free Style Fighter allow the character to use several stances in the same time. If a character has, for example, 3 levels as Free Style Fighter and 1 as Master of Many Style, how would these features work?

The wording of the Free Style Fighter doesn’t seem to mention something about it:

At 3rd level, a freestyle fighter can freely mix two of the styles he knows into a more flexible style. A free-style fighter can have an additional style feat stance active simultaneously with his first style feat stance. He can enter all of his allowed stances as a move action or one stance as a swift action.

The description of the Master of Many Style seems to have more restrictions (emphasis mine):

At 1st level, a master of many styles can fuse two of the styles he knows into a more perfect style. The master of many styles can have two style feat stances active at once. Starting a stance provided by a style feat is still a swift action, but when the master of many styles switches to another style feat, he can choose one style whose stance is already active to persist. He may only have two style feat stances active at a time.

In this context, I don’t know if the bold statement is only a difference of wording to track the Master of Many Style progression, so should be considered separately from the other archetype, or if this limit should prevent the multiclassing with the Free Style Fighter archetype.

Lid close suspends laptop only once per boot

I have Ubuntu 18.04 (Kerel: 5.0.0-27-generic) on my Dell XPS 15 (9570). I discovered that closing the lid puts the laptop into sleep correctly only works the first time I it. Closing the lid a second time (on on boot) does not put the laptop so sleep anymore. Rebooting resets the behavior.

sudo journalctl | grep "PM: suspend" | tail -2 Sep 06 23:35:56 XPS kernel: PM: suspend entry (deep) Sep 06 23:36:25 XPS kernel: PM: suspend exit 
cat /etc/systemd/logind.conf [Login] #NAutoVTs=6 #ReserveVT=6 #KillUserProcesses=no #KillOnlyUsers= #KillExcludeUsers=root #InhibitDelayMaxSec=5 #HandlePowerKey=poweroff HandleSuspendKey=suspend #HandleHibernateKey=hibernate HandleLidSwitch=suspend #HandleLidSwitchDocked=ignore #PowerKeyIgnoreInhibited=no #SuspendKeyIgnoreInhibited=no #HibernateKeyIgnoreInhibited=no #LidSwitchIgnoreInhibited=yes #HoldoffTimeoutSec=30s #IdleAction=ignore #IdleActionSec=30min #RuntimeDirectorySize=10% #RemoveIPC=yes #InhibitorsMax=8192 #SessionsMax=8192 #UserTasksMax=33% 

I used the xps-tweaks.sh script for the laptop.

How to ensure that closing the lid always put the device into sleep mode?