Author Topic: Update issues? Can't install apps? Try this first!  (Read 10628 times)

0 Members and 1 Guest are viewing this topic.

Offline Ayceman

  • Core Team
  • *****
  • Posts: 2113
  • Security Chief :P
  • Branch: stable, unstable
  • Desktop: Xfce
  • GPU Card: GTX780/HD3000/AMD8400
  • GPU driver: Nvidia/Intel/Catalyst
  • Kernel: latest stable+lts (64)
  • Skill: Advanced
Update issues? Can't install apps? Try this first!
« on: 06. April 2014, 22:42:07 »
If you have an issue updating or installing something, there's one solution that will almost always work. Try this first before asking:

Code: [Select]
sudo rm -f /var/lib/pacman/db.lck && sudo pacman-mirrors -g && sudo pacman -Syyuu  && sudo pacman -Suu
It will remove the database lock file (happens if pacman was suspended unexpectedly), it updates the mirror list, it updates the repos, and it also installs all updates and downgrades (if necessary first manjaro-system and pacman, and then the rest).


Unrelated protip: If you don't want pacman-mirrors to go through all the mirrors every time it runs, do "sudo pacman-mirrors -i" to select you favourites.

Offline Ayceman

  • Core Team
  • *****
  • Posts: 2113
  • Security Chief :P
  • Branch: stable, unstable
  • Desktop: Xfce
  • GPU Card: GTX780/HD3000/AMD8400
  • GPU driver: Nvidia/Intel/Catalyst
  • Kernel: latest stable+lts (64)
  • Skill: Advanced
Re: Update issues? Can't install apps? Try this first!
« Reply #1 on: 15. November 2014, 16:59:29 »
Starting 0.8.11, the commands above have an alias. Just run "fixit" in a terminal.



If you want to add the alias yourself to an already installed system, edit .bashrc in your home folder, and add this:


Code: [Select]
alias fixit='sudo rm -f /var/lib/pacman/db.lck && sudo pacman-mirrors -g && sudo pacman -Syyuu  && sudo pacman -Suu'
Then source the file:

Code: [Select]
. ~/.bashrc