When ever I try to install "dh-modaliases", why i am getting this answer: "fahadhemu@hemu:~$ apt-get install dh-modaliases E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?" please help
I get this error whenever I try to install programs using the terminal:  home@ubuntu:~$ apt-get install myunity E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?   Also I'm unable to install updates using the terminal.
I want to search for all .conf files in /etc/. I tried grep -r *.conf /etc, but the result isn't right. What am I doing wrong? Centos7 can't boot with shim-x64-15-7.el7_9.x86_64 The floowing is serial console output: BdsDxe: starting Boot0003 &quot;CentOS Linux&quot; from HD(1,GPT,A51EC18C-6831-4D47-B93E-B20DBC3F30BF,0x800,0x64000)/\EFI\centos\shimx64.efi  UEFI: Attempting to start image. Description: CentOS Linux FilePath: HD(1,GPT,A51EC18C-6831-4D47-B93E-B20DBC3F30BF,0x800,0x64000)/\EFI\centos\shimx64.efi OptionNumber: 3.  !!!! X64 Exception Type - 0D(#GP - General Protection)  CPU Apic ID - 00000000 !!!! ExceptionData - 0000000000000000 RIP  - 00000000BF2E5D5C, CS  - 0000000000000038, RFLAGS - 0000000000010006 RAX  - 00000000BFF5FE50, RCX - 000000000000001F, RDX - 00000000BFF31F28 RBX  - 00000000BF352FB0, RSP - 00000000BFF31E50, RBP - 00000000000023C0 RSI  - 00000000BFF31F28, RDI - 0000000000000068 R8   - 00000000BDB8C018, R9  - 000000000000211E, R10 - 00000000BDC6C010 R11  - 00000000BFF31E9A, R12 - 00000000BE791068, R13 - 00000000BF339018 R14  - 00000000BEE21018, R15 - 0000000000000068 DS   - 0000000000000030, ES  - 0000000000000030, FS  - 0000000000000030 GS   - 0000000000000030, SS  - 0000000000000030 CR0  - 0000000080010033, CR2 - 0000000000000000, CR3 - 00000000BF401000 CR4  - 0000000000000668, CR8 - 0000000000000000 DR0  - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000 DR3  - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400 GDTR - 00000000BF3EEA98 0000000000000047, LDTR - 0000000000000000 IDTR - 00000000BEE1F018 0000000000000FFF,   TR - 0000000000000000 FXSAVE_STATE - 00000000BFF31AB0 !!!! Find image based on IP(0xBF2E5D5C) /build/work/af60adde42b1d1ad5be2a01e4924bb905248/google3/blaze-out/k8-opt/genfiles/third_party/edk2/ovmf_x64_csm_debug_workspace_dir/ovmf_x64_csm_debug_edk2_files_dir/Build/OvmfX64/DEBUG_CLANG38/X64/OvmfPkg/8254TimerDxe/8254Timer/DEBUG/Timer.dll (ImageBase=00000000BF2E4000, EntryPoint=00000000BF2E5AB5) !!!! Hiding axis text in matplotlib plots Matrix given by $a_{ij} = 1/(i+j)$ is non-singular. Fitting text to a shape in TikZ I am designing a poster, which has some geometrical shapes (TikZ paths) surrounded by some text. I would like the text to flow neatly around these shapes. I bet there's some clever TikZ magic that could do this.  EDIT: This is the sort of effect I want, sorry to not be clear:    \documentclass[a4paper]{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) to (2,-2) to (2,-4) to (4,-4) to [out=up, in=down] (6.5,0); \node [text width=6cm, anchor=north west] at (0,0) { \hspace{5pt}  This is the sort of effect I want to \\ \hspace{23pt} achieve, with text automatically \\ \hspace{36pt} constrained by some \\ \hspace{46pt} geometrical form. Here \\ \hspace{55pt} it's just a curve, \\ \hspace{57pt} but this could \\ \hspace{57pt} also be the \\ \hspace{57pt} text label \\ \hspace{57pt} of a node.}; \end{tikzpicture} \end{document} How do I configure swappiness? Create database fields to an existing table when installing a module I'm new to drupal and I need some help.  I created a new module with name user_extra. Which create necessery table when Installing the module.  But I also need to insert some database field in 'users_field_data' table ('user_extra_id' and 'user_office')  In baseFieldDefinitions I wrote all necessery database table fields for user_extra table.   public static function baseFieldDefinitions(EntityTypeInterface $entity_type) {     // Standard field, used as a unique if primary index.     $fields['id'] = BaseFieldDefinition::create('integer')         -&gt;setLabel(t('Unit ID'))         -&gt;setDescription(t('The unit ID.'))         -&gt;setReadOnly(TRUE)         -&gt;setSetting('unsigned', TRUE);      $fields['uuid'] = BaseFieldDefinition::create('uuid')         -&gt;setLabel(t('UUID'))         -&gt;setDescription(t('The unit UUID.'))         -&gt;setReadOnly(TRUE);         .         .         .     $fields['user_info'] = BaseFieldDefinition::create('string')         -&gt;setLabel(t('User Info'))         -&gt;setDescription(t("The User Info"))         -&gt;setSetting('max_length', 255)         -&gt;setDisplayOptions('form', array(           'type' =&gt; 'string_textfield',           'weight' =&gt; 10,         ))         -&gt;setDisplayConfigurable('form', TRUE);      return $fields;      }   When I install the module it inserts all values that I define in baseFieldDefinitions.  But I also need to create 'user_extra_id' and 'user_office' in 'users_field_data' table with setDisplayOptions and setDisplayConfigurable options.  This is the commenting that I made in entity file  /**  * @ContentEntityType(  *   id = "user_extra",  *   label = @Translation("user extra"),  *   handlers = {  *     "storage" = "Drupal\user_extra\UserextraStorage",  *     "storage_schema" = "Drupal\user_extra\UserextraStorageSchema",  *     "access" = "Drupal\user_extra\UserextraAccessControlHandler",  *     "list_builder" = "Drupal\user_extra\UserextraListBuilder",  *     "view_builder" = "Drupal\user_extra\UserextraViewBuilder",  *     "views_data" = "Drupal\user_extra\UserextraViewsData",  *     "form" = {  *       "default" = "Drupal\user_extra\Form\UserextraForm",  *       "add" = "Drupal\user_extra\Form\UserextraAddForm",  *       "edit" = "Drupal\user_extra\Form\UserextraEditForm",  *       "delete" = "Drupal\user_extra\Form\UserextraDeleteForm",  *     }  *   },  *   admin_permission = "administer user_extra",  *   base_table = "user_extra",  *   entity_keys = {  *     "id" = "id",  *     "label" = "name",  *     "uuid" = "uuid",  *   },  *   links = {  *     "canonical" = "/admin/user_extra/{user_extra}",  *     "add-form" = "/admin/user_extra/add",  *     "delete-form" = "/admin/user_extra/{user_extra}/delete",  *     "overview-form" = "/admin/user_extra/${user_extra}/overview",  *     "edit-form" = "/admin/user_extra/{user_extra}",  *     "collection" = "/admin/user_extra",  *     "children" = "/admin/user_extra/{user_extra}/children",  *   },  * )  */ How does Ethernet know how long a frame is? Why can't a Federation Starship's transporter history be used to bring someone back to life? Google AJAX API - How do I get more than 4 Results? Can't boot into Ubuntu in Windows 10 / Ubuntu dual boot If there are two twins. such that one of them goes on a space voyage maintaining a constant velocity, and that one never returns to earth, and the twins decide to never meet but send information about their age to each other by some light pulse or any other method.  If then one knows that he is younger, won't he know he is the one travelling thus violating the postulate of relativity that all inertial frames are equal w.r.t. all phenomena and that one can never know if he is moving with a constant velocity. What would be the disadvantages of using a 4 stranded ethernet cable? I got this cable with a homeplug AV 200 device - its labelled cat 5e    But looking at the plug end has me rather dubious about it.   (There's only 4 strands there, not the standard 8 - and missing pins, so I suspect these cables are designed to do so. The wire jacket is also surprisingly loose).  Another angle. This isn't a standard connector, no, someone has went and made a non standard connector specifically for this    I figured the cable was crap so I cut into it - some of you were wondering if they had merely left out the additional pairs - and the answer is no - its basically half a cat 5 cable.    I'm currently using it for some legacy equipment that runs on fast ethernet and the plug it came with and it seems to work. However, I'm curious - what're the downsides of such a cable? What do I need to look out for? In what situations would this cat-5 cable be unsuitable for use in anything other than a ethernet cat o'nine tails? Deleting files from Remote FTP-Server older than x days How to do a Point to Polygon analysis with multiple variables in QGIS? I have a database of almost 10k crimes, which are divided in to 10 categories and plotted on a map  I also have a database of 12k addresses, which are also plotted on the map.   I aim to perform a multiple regression to determine whether there are correlations between types of crime and house price.  I have created a buffer of 250 meters around each of the addresses, and would like to list a count of each of the crimes which are located within this buffered zone for each of the addresses, however, I can only get QGIS to give me a count of all types of crime, rather than the specifics.   Does anyone know how to do a point to polygon analysis of this type? I am in the middle of breaking the crime databases to analyse each one separately, which is a bit difficult! How does a zener diode and a resistor regulate voltage? I'm trying to display models that have shading drawn or baked directly on the textures, but I can't figure out how to disable Blender's default scene lighting. If there are no lights in the scene, everything is black, but I want to see the textured objects fully bright. How do I disable the lighting?  NOTE: Just before posting this, I found the "Shadeless" material property, which does more or less what I want. However, is there a way to globally toggle the default lighting? Why is "glide symmetry" its own type? Artin's Algebra pages 155 &amp; 156 list the types of symmetry of a plane figure as:   Reflective Rotational Translational Glide   He then goes on to say "Figures such as wallpaper patterns may have two talk about other figures having combinations of independent" symmetries. EDIT: He says "... having combinations of independent translational symmetries". See Joriki's answer.  Why doesn't glide symmetry count as having two independent (reflection + translation) symmetries? If we're going to count combinations, why not have rotation + translation etc. as their own types too? How could a gap between array modifier created objects be closed? Why does HDD activity slow the whole System down (on Windows 7)? If I copy a large amount of data from on drive to another (physical) drive my whole system is running slow.  I am using Windows 7 64bit version on an Intel Core 2 Duo 3 GHz.  This is the situation:   Very fast copying between two SATA disks.  Resource Monitor shows 80MB/s read, 70MB/s writes and 150MB/s total The total CPU load is about 3% There is plenty (>2GB) of free physical RAM left All partitions have enough (>10gb, >10%) of free space left and show low fragmentation Anti-Virus software is not active   This is the problem: No matter what I want to do while copying, it takes forever. Even tasks that do not need a lot of disk access (as they should work from RAM only), are extremely slow. The moment I stop the copying process, all the unfinished tasks finish at once. For example trying to open a new browser windows or explorer window will not work. If the copying is stopped 5 explorer windows popup at once.  My question is: why? What resource is exhausted, if CPU and memory are idle? And what part of my computer hardware I need to upgrade to get better behavior? Also read Psycogeek's comment for further questions in this direction.  If your answer is, that everything needs HDD Access, which is blocked by such an activity, then my question is: Is there a way to copy something on your system without rendering it unusable until its done? (which can be hours, if >500g have to be copied).