apt get life

Life around technology

  • Technology
    • Guides
    • Linux
    • Development
      • Laravel
    • Misc
    • Raspberry Pi
  • Writing
  • Crafts
    • Crochet
    • Model Making
    • Painting
  • Privacy Policy
You are here: Home / Archives for pacman

Fixing Raspberry Pi Arch ‘pacman-db-upgrade’ Permissions Error

2015/07/14 by sudo

I’ve installed Arch Linux on the Raspberry Pi for the first time, and after getting the package manager pacman to update all of the software to the latest versions I’ve been getting the following error:

error: try running pacman-db-upgrade

When running the upgrade command this permissions error was returned:

ERROR: You must have correct permissions to upgrade the database.

After looking at several forum posts I discovered that the upgrade made my filesystem read-only. To fix this edit /boot/cmdline.txt and add the rw flag

nano /boot/cmdline.txt

selinux=0 plymouth.enable=0 smsc95xx.turbo_mode=N dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p6 rootfstype=ext4 elevator=noop rw rootwait

Your installation my have a different cmdline.txt file, but the important bit is the rw flag, usually placed after the root filesystem is declared.

For more information see this forum post: https://www.raspberrypi.org/forums/viewtopic.php?f=53&t=97657

 

Filed Under: Raspberry Pi, Technology Tagged With: arch, pacman, raspberry pi

Recent Posts

  • System Hang on Ubuntu 24.04 “e1000_print_hw_hang”
  • Disable iLO on HP Microserver Gen8
  • Ubuntu Desktop 24.04 Change Wallpaper Settings
  • Customising Ubuntu Desktop 24.04
  • Remove domains from Let’s Encrypt using Certbot

Tags

API auditing crochet data recovery debian debudding development Dingo API docker email Getting started with Laravel 5 & Dingo API hard drive health HP Microserver KVM Laravel larvel 5 lenovo Linux Minion mint netgear nas networking network shares php PHP development Postfix raspberry pi review samba security SMART smartctl smartmontools smb testing traefik ubuntu ubuntu 18.04 ubuntu 20.04 ubuntu 22.04 ubuntu server vagrant Virtual machines xdebug xubuntu

© Copyright 2015 apt get life