Raspberry Pi 4 安装 Arch Linux ARM遇到的坑

系统信息

                   -`                 
                  .o+`                 root@alarmpi
                 `ooo/                 OS: Arch Linux 
                `+oooo:                Kernel: armv7l Linux 4.19.93-1-ARCH
               `+oooooo:               Uptime: 1h 26m
               -+oooooo+:              Packages: 620
             `/:-:++oooo+:             Shell: bash 5.0.11
            `/++++/+++++++:            Disk: 5.5G / 111G (6%)
           `/++++++++++++++:           CPU: ARMv7 rev 3 (v7l) @ 4x 1.5GHz
          `/+++ooooooooooooo/`         RAM: 301MiB / 3914MiB
         ./ooosssso++osssssso+`       
        .oossssso-````/ossssss+`      
       -osssssso.      :ssssssso.     
      :osssssss/        osssso+++.    
     /ossssssss/        +ssssooo/-    
   `/ossssso+/:-        -:/+osssso+-  
  `+sso+:-`                 `.-/+oso: 
 `++:.                           `-/+/
 .`                                 `/

DNS无法解析

  1. 修改/etc/hosts
  2. 修改nano /etc/systemd/resolved.confDNSSEC=no

根文件所在分区

修改/boot/cmdline.txtroot=UUID=<your disk UUID>

装Nextcloud服务器时遇到的问题

Arch Linux ARM Archieve Repository

降级php=7.4 -> php=7.3

alarm archieve repo

apcu版本太高导致internal error

  • 修改 /etc/php/php.inierror_log = /var/log/php_errors.log
  • cat error_log = /var/log/php_errors.log,发现:[08-Jan-2020 03:32:08 UTC] PHP Warning:  PHP Startup: Unable to load dynamic library 'apcu' (tried: /usr/lib/php/modules/apcu (/usr/lib/php/modules/apcu: cannot open shared object file: No such file or directory), /usr/lib/php/modules/apcu.so (/usr/lib/php/modules/apcu.so: undefined symbol: php_error_docref)) in Unknown on line 0。于是推断原因是apcu版本不对,下一个旧版安装解决问题。

Transmission daemon

transmission-cli

nano /usr/lib/systemd/system/transmission.service & /var/lib/transmission/.config/transmission-daemon/settings.json

Show Comments