I have a fresh installation of Ubuntu 18.04-x64.  In the terminal I enter the command:  sudo apt update   And I get the following error:  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/   When I run sudo apt update again, the command runs successfully and I get:  Reading package lists... Done                                                   Building dependency tree        Reading state information... Done 103 packages can be upgraded. Run 'apt list --upgradable' to see them.   This behaviour is consistent. I have a VM snapshot of the fresh Ubuntu installation and everytime the first sudo apt update fails with this error and the second sudo apt update completes successfully.  EDIT: Should have mentioned that the sudo apt update command lies inside a script. Running the script with sudo privileges seems to have fixed the problem.
To do a patch manually I must type this command   sudo ./playback_delete_data_patch.sh 09_delete_old_data_p.sql     There is a space just before the 09:   sudo ./playback_delete_data_patch.sh [space] 09_delete_old_data_p.sql   How can I run this inside a script?  There are also several other commands but this one is giving trouble.
Slope layer with false results in QGIS? After the DEM creation, I wanted to create slope layer.   However, the result has not satisfied me. I don't think the slope map is correct. Have you ever encountered false calculated terrain map?  This is the DEM:    And this is the slope layer. Do these leaves signify anything? Is “ ’s ” ever correct for pluralization? A relatively modern dictionary (I don’t know which one, because we’ve cut out the pages and used them as wallpaper in our bathroom, but I know it’s less than 20 years old) indicates that R’s is one correct pluralization of R, as is Rs, but whichever dictionary this is, it’s kind of a no-name brand, so I’m not sure I trust it.  I’ve always wondered what the best way was to pluralize single letters or numerals, like 2’s or 2s.  What’s correct? Is there a way to rename (or do away with the name of) the bibliography page that is output using BibTeX?  If so, is the name dependent on the bibliographystyle, or is it something inherent within the BibTeX functionality? Cursor is set to move by increments. how to reset to normal? Proving which QM interpretation is correct Let's assume that the existence of gravitons is theoretically proven or they are detected by LHC could one interpretaion be proven correct? How do I copy Word tables into Excel without splitting cells into multiple rows? I have data in a Word table that includes line and paragraph breaks. When I copy the data into Excel, it splits each line and paragraph I want into multiple cells. How do I copy the data to Excel and keep the breaks? Mail vs. mail what is the difference What is this business about mail and Mail? [On a CentOS box] Why mail does not work but won't return an error either while Mail works fine with the exact same syntax?  Mail is basically a link to mail, isn't it?  Sorry, this was a mixup, apparently (for historical reasons?!) there is a mail and a Mail  Nowadays it looks like they both point to the same thing, on my machine:  sr-linux&gt; ls -l `which mail` -rwxr-xr-x    1 root     mail        66492 Jun 24  2001 /bin/mail sr-linux&gt; ls -l `which Mail` lrwxrwxrwx    1 root     root           14 Nov 19  2001 /usr/bin/Mail -&gt; ../../bin/mail Getting different answers when integrating using different techniques Where can I find the points per game throughout many NBA seasons? Where can I find the points per game (of both teams) throughout many NBA seasons?  To illustrate my point, what I mean is something like:   2000/01 average points per NBA game: 200; 2001/02 average points per NBA game: 210; 2002/03 average points per NBA game: 205;   so on... How can I get the current working directory? I want to have a script that takes the current working directory to a variable. The section that needs the directory is like this dir = pwd. It just prints pwd how do I get the current working directory into a variable? How can I use quotas in samba? I have a simple set-up with just one public share on my configuration file. How can I restrict its size? What makes scaling pixel art different than other images? Recently I was coaching a developer who's new to making pixel art games, and realized there's some "conventional wisdom" around scaling pixel art that's not obvious to a newcomer, and might not be well documented. So, here's an attempt to fix that....     I've heard I should only scale pixel art by 200%, 300% etc. not in-between sizes like 120%   Why is that? Shouldn't scaling "just work" the way it does with other images? What if I really need to make my character just a fraction larger or smaller to get the right gameplay or look? How do I fix this?  I'm told it's "bad" to use pixel art at different scales in one game - why?    For example, if I scaled up my character so each sprite texel is 4x4 screen pixels, while my background art is scaled up so each sprite texel is 6x6 screen pixels. Isn't a pixel a pixel at the end of the day? How to link data to a polygon ArcMap 10.3 I have a map with different polygons (118). Each of this polygons represent diferent vegetation types.  For each of those polygons I have data of which species there is and how abundant they are (the abundance is measured with a scale from 1 to 3).  I would like to "link" (I am sorry if its not the correct way of name it) the data of which species and abundance there is in each of those polygons.   I would like afterwards to be able of selecting the different polygons containing the same abundance and species.  In the polygons I created there is no atributes associated other than (FID, shape and Id. the 3 of them created alone by the program when I drew them) and the tables I have in excel with the data I want to "link" to the polygons contain a column called species and another abundance.  As you can see, I'm pretty new using the program...    As I have tried to do what you all suggest in the comments down here, and I couldn't achieve what I was wanting to do (provably because of my bad explanation before...)  I leave a picture:  As you can see in the attribute table, that is how every attribute table of each polygon (which represents one area) looks like. On the right there is how I have my data in excel. Could you please suggest something I could do in order to add to the polygons attribute table the data belonging of species and its abundances (polygon number 1 has to have all the species (Acer mons, Acer pseu, Acer repens….) and its abundance (which are the numbers of the row Area1). How do I install the latest OpenOffice? What is the best way to restrict access to adult content? I bought my kids a PC and installed 12.04 (Unity) on it.  The bottom line is, I want my children to use the computer unsupervised while I have confidence they cannot access anything inappropriate.  What I have looked at:  I was looking at Scrubit a tool which allows me configure my wifi router to block content and this solution would also protect my other PC and mobile devices.  This may be overkill as I just want the solution to work on one PC.    I also did some Google searches and came across the application called .  My experience of OSS is that the best solutions frequently never appear first on a Google search list and in this case I need to trust the methods therefore my question is very specific.   I want to leverage your knowledge and experience to understand What is the best way to restrict adult content on 12.04 LTS as this is important to me.  It maybe a combination of things so please don't answer this question "try this or that", then give me some PPA unless you can share your experience of how good it is and of course if there are any constraints. How do I remap certain keys or devices? Why Dumbledore kept mum until the very end of the "Deathly Hallows"? Is the War Machine armour simply "the Iron Man armour with big guns"? What are the differences between Iron Man and War Machine armours ?  In the movies, it seems that they are the same, except the War Machine armour features more heavy weapons. But if they are the same, why wouldn't Tony Stark use the War Machine armour?  Do they have different characteristics (like strength, resistance, flight time...)?  I am looking for answers from the movies and/or the comics. This discussion informed our process for seven years, but eventually required updates and augmentation. For discussion regarding the successors to this process, please see:    Stack Exchange has some of the best Moderators around — seriously — and that is due in no small part to the communities who scrutinize and vote in our Moderator elections.  We have a rather formal process for electing moderators, but up until now  has been quite informal. On those rare, rare occasion when things just aren't working out, you can see why it becomes such a sticky business to remove someone from a democratically elected position. Our current process is one of &quot;we've got your back.&quot; The Community Team routinely monitors moderator activities, so if a moderator violates the  or fails to uphold the , we can and do intervene. If the disputes and problems persist without resolution, eventually we can ask someone to step down. That's not good enough. We need a much more transparent and prescribed process for when — and more importantly how — to intervene when on-going problems are going unresolved. In urgent situations, we'll step in to protect a site, but ideally the process should be impartial and not subject to accusations of Stack Exchange simply applying undue influence over a community when the whim strikes. The Question: Before we start bouncing around ideas internally, I'd like to hear what you think. What process should be in place to add some checks and balances to deal with higher issues like possible impeachment of a moderator? When and how would such a process come into play? How should such situations be resolved? How do we keep it from being abused? Have at it. This is a round table vetting of ideas.