<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mir Habib Ul Latif</title>
    <description>The latest articles on DEV Community by Mir Habib Ul Latif (@mirsahib).</description>
    <link>https://dev.to/mirsahib</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F520749%2F7307e664-90e4-4b2c-9a4d-b981f6ca9618.jpeg</url>
      <title>DEV Community: Mir Habib Ul Latif</title>
      <link>https://dev.to/mirsahib</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mirsahib"/>
    <language>en</language>
    <item>
      <title>A day with Linux-2: How to undo apt-get autoremove </title>
      <dc:creator>Mir Habib Ul Latif</dc:creator>
      <pubDate>Sat, 02 Jan 2021 14:38:22 +0000</pubDate>
      <link>https://dev.to/mirsahib/a-day-with-linux-2-how-to-undo-apt-get-autoremove-4agn</link>
      <guid>https://dev.to/mirsahib/a-day-with-linux-2-how-to-undo-apt-get-autoremove-4agn</guid>
      <description>&lt;p&gt;Well i am trying to install gh cli in my ubuntu 20LTS but get dpkg error because there is a name conflict between &lt;code&gt;gh&lt;/code&gt; and &lt;code&gt;gitsome&lt;/code&gt; and in this &lt;a href="https://github.com/cli/cli/issues/2360"&gt;issue&lt;/a&gt; they suggest me to remove gitsome (if i am not using it), so when i &lt;br&gt;
&lt;code&gt;sudo apt remove gitsome&lt;/code&gt; i accidentally type &lt;code&gt;sudo apt autoremove&lt;/code&gt; which remove most of my python3 package.Then i realize what i have done,so to recover my python3 package i run the following command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;echo '#!/bin/bash' &amp;gt; restore
echo sudo apt-get install `grep Remove /var/log/apt/history.log | tail -1 | sed -e 's|Remove: ||g' -e 's|([^)]*)||g' -e 's|:[^ ]* ||g' -e 's|,||g'` &amp;gt;&amp;gt; restore
chmod +x restore 
./restore
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reference:&lt;a href="https://askubuntu.com/questions/738984/how-to-undo-apt-get-autoremove"&gt;https://askubuntu.com/questions/738984/how-to-undo-apt-get-autoremove&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>A day with Linux-1: Authentication is required to create a color profile (Ubuntu 20LTS)</title>
      <dc:creator>Mir Habib Ul Latif</dc:creator>
      <pubDate>Thu, 31 Dec 2020 16:15:57 +0000</pubDate>
      <link>https://dev.to/mirsahib/a-day-with-linux-1-authentication-is-required-to-create-a-color-profile-ubuntu-20lts-3pj5</link>
      <guid>https://dev.to/mirsahib/a-day-with-linux-1-authentication-is-required-to-create-a-color-profile-ubuntu-20lts-3pj5</guid>
      <description>&lt;p&gt;If your facing this issue like me you can solve it by placing a new &lt;code&gt;.rules&lt;/code&gt; file in&lt;br&gt;
&lt;code&gt;/etc/polkit-1/rules.d/&lt;/code&gt;&lt;br&gt;
and paste this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;polkit.addRule(function(action, subject) {
   if ((action.id == "org.freedesktop.color-manager.create-device" ||
        action.id == "org.freedesktop.color-manager.create-profile" ||
        action.id == "org.freedesktop.color-manager.delete-device" ||
        action.id == "org.freedesktop.color-manager.delete-profile" ||
        action.id == "org.freedesktop.color-manager.modify-device" ||
        action.id == "org.freedesktop.color-manager.modify-profile") &amp;amp;&amp;amp;
       subject.isInGroup("ATTENTION")) {
      return polkit.Result.YES;
   }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Reference: &lt;a href="https://unix.stackexchange.com/questions/417906/authentication-is-required-to-create-a-color-profile"&gt;https://unix.stackexchange.com/questions/417906/authentication-is-required-to-create-a-color-profile&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
