How to Remove broken packages in ubuntu 14.04 LTS

  • Install the Synaptic Package Manager, either through the Software Center or by running this command in the Terminal:
     sudo apt-get install synaptic
     or 
    "apt://synaptic"     run in brouser 
  • Open it by typing synaptic in the Unity dash and then hitting Enter.
  • Then follow this procedure:
    1. Select the "Status" Catagory. This shows packages organized by status.
    2. Select "Broken dependencies" catagory from upper left pane.
    3. Select the broken packages. If the packages are more than one, select them all by pressing Ctrl+A.
    4. Then right-click on a selected package, and select the option "Mark for Complete Removal" in the menu.
    Screenshot showing "Mark for complete removal" on packages with broken dependencies
That's it. The broken packages are gone.
 =============================
Some Helpfull commonds for error in terminal.

sudo rm /var/lib/apt/lists/* -vf
sudo apt-get clean
sudo rm -f /var/lib/dpkg/lock
sudo rm /var/cache/apt/archives/lock
sudo apt-get autoclean
sudo apt-get autoremove
sudo apt-get --fix-broken install
sudo dpkg --configure -a
sudo apt-get autoclean $$ apt-get clear cache
sudo apt-get update

sudo rm /var/lib/apt/lists/partial/*
sudo apt-get clean
cd /var/lib/apt
sudo mv lists lists.old
sudo mkdir -p lists/partial
sudo apt-get clean
sudo apt-get update

sudo -i gedit /var/lib/dpkg/status
sudo rm /var/lib/apt/lists/lock
sudo fuser -cuk /var/lib/dpkg/lock
sudo fuser -cuk /var/cache/apt/archives/lock

Remove Terminal History
cat /dev/null > ~/.bash_history && history -c && exit
=================================

SHARE

Ibrar Ansari

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment