I installed GDebi package installer.  I tried to configure it step by step but have not been successful.  I have used the command:  sudo apt-get install -f   with the output:  Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.    I also tried:  sudo dpkg --configure -a   And:  apt-get dist-upgrade   which gives the error:  Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?   What should I do?
I'm trying to run this command in the terminal:  sudo apt install software-properties-common   This is the error message I get:  E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable)   E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend),     is another process using it?
How can I count unique selections from multiple selections in a drop down list (Excel) I would like to count the number of unique selections from a column that contains multiple selections from a drop down list.  For example, column B3 contains,     Monday, Tuesday, Wednesday   The count function returns a value of 1 instead of 3 - is there any way to count the three days distinctly? Thank you!  Multiple selections from a drop down list was made possible using the VBA code from: Efficient Way to store images in android Show that if m/n is a good approximation of $\sqrt{2}$ then $(m+2n)/(m+n)$ is better Every time i publish a new post i want to display an icon like a badge (NEW) and after a specific time it will disappear.  Lets say i publish a new post and i want to display that it is a new post. So i want to insert an icon that for example a star, in each new post in the blog list view into the metadata of the posts. Also i want to be removed after a specific time will pass. Lets say in one day or 24 hours the icon should be removed automatically.  How can i do this? Get network utilization from command line In the Windows task manager there is a handy network tab which shows the link speed and network utilization (in percentage of available bandwidth) for connected network adapters:  Is there a way to get this information through the command line? Why do computers only use 0 and 1? Why do computers only use 0 and 1? Won't the addition of other numbers such as 2 or 3 speed up computers? Also, 2 and 3 can be used to shorten the bit-length of integers (2 and 3 can be used to end an integer, so that the number 1 only needs one two bits.)..  Why is binary computer more preferred? SSH to open GUI on target machine? Why doesn't current pass through a resistance if there is another path without resistance? Why doesn't current pass through a resistance if there is another path without resistance? How does it know there is resistance on that path? Some clarification:  I understand that some current will flow through the resistance. A depiction of this phenomenon through Ohm's laws does not answer the 'why' part of the question as it does not illuminate the process behind this phenomenon. There seems to be disagreement among the answers on whether the charge repulsions are enough to cause this effect. Cited research would be appreciated to resolve this issue. To refine what I mean by this question, I think I should give an example of why I am curious as to the causal background of this phenomenon. If charge repulsions do in fact repel 'current' in the example of the short circuit, then why does the same phenomenon not happen in other parallel circuits. (Again, I know that not all circuits behave ideally) I believe the question is expressed in the most straightforward way possible. This should, however, not affect the scope of the answers. I do not wish to see or think on the level of an electron as circuit behavior always includes a cumulative effect due to the nature of electrostatic interactions. Remove HTML tags from a String Why does subsurf modifier cause weird deformation at the end of a cylinder? My problem is simple. I think that the strange deformations on the top are there because there are so many vertices in one face. How do I fix this while maintaining nice topology?  Although I triangulated the top polygon, the problem still persists. Forcing linebreaks in \url How do I study the "correlation" between a continuous variable and a categorical variable? Given a joint density function, what is the conditional expectation $E[Y|x]$? The random variables $X$ and $Y$ have the joint density $$f_{X,Y}(x,y)= \left\{\begin{matrix}e^{-y}, \mbox{ } 0\leq x \leq y \le \infty \\ 0,  \mbox{   otherwise}\end{matrix}\right.$$ Evaluate the conditional expectation $E[Y|x]$.    I'm not sure if I'm doing this correctly. Please let me know if something is off in my solution. Thanks for reading.  My solution: (My expected value is negative, which I'm pretty sure can never be the case. Also in line 4 and 8, are the domains correct?)  $$E[Y|x] = \int_{-\infty}^{\infty}yf_{Y|X}(y|x)dy.$$  $$f_{Y|X}(y|x) = \frac{f_{X,Y}(x,y)}{f_{X}(x)}.$$    $$f_{X}(x) = \int_{-\infty}^{\infty}f_{X,Y}(x,y)dy$$   $$= \int_{0}^{\infty}e^{-y}dy $$  $$=\left [ -e^{-y} \right]\Big|_0^\infty $$  $$ = -e^{-\infty}-(-e^{0})=1. $$ $$f_{X}(x) = 1, x \geq 0.$$ Thus,   $$E[Y|x] = \int_{0}^{\infty}-ye^{-y}dy$$  $$= -\int_{0}^{\infty}ye^{-y}dy$$ After integration by parts,  $$E[Y|x] = \left [ ye^{-y}+e^{-y} \right]\Big|_0^\infty$$ $$=0-[e^{0} + 0]=-1$$ Therefore, $E[Y|x] = -1.$  Thanks in advance for reading this long problem and responding! Where do I ask where to ask? Using select by attributes then calculate field on selection in ArcPy? ArcGIS Pro 2.3  I want to create a standalone script which runs outside of ArcGIS Pro (for automation purposes), which selects features (with blank attributes) in a feature class and runs calculate field on those selections.  The code below doesn't work. It updates all fields, not the selected ones.  import arcpy arcpy.management.SelectLayerByAttribute(r"C:\Automation\Categories\Coal\Coal_automation.gdb\CLAIMS", "NEW_SELECTION", "Claim_Spend_in_£ = ''", None)  arcpy.management.CalculateField(r"C:\Automation\Categories\Coal\Coal_automation.gdb\CLAIMS", "Claim_Spend_in_£", '"Unrecorded"', "PYTHON3", None) print ("Done")   How can I write the code to run calculate field on a selection? I've got a problem while unwrapping UVs. When I'm unwrapping UVs it showing me this message.     Why is this happening? What is the progression route in Terraria? How to resolve ambiguous column names when retrieving results? Trying to run a Ubuntu server for the first time... But everything is in a terminal. Is there a way to switch to a GUI? It maby be weird, I want to make header and footer for every page including the first page of each chapter, how can I do this?