ophub / amlogic-s9xxx-armbian

Support for Armbian in Amlogic, Rockchip and Allwinner boxes. Support a311d, s922x, s905x3, s905x2, s912, s905d, s905x, s905w, s905, s905l, rk3588, rk3568, rk3399, rk3328, h6, etc.
GNU General Public License v2.0
5.69k stars 1.83k forks source link

systemd-journald error and sudo apt -t unstable install error on bullseye #312

Closed JFLim1 closed 2 years ago

JFLim1 commented 2 years ago

Hi @ophub

Just install Armbian_22.05.0_Aml_s922x-reva_bullseye_5.15.40_2022.05.16.1430.img.gz on a USB Flash Drive successful and also successfully expand the USB with armbian-tf.

During boot up there is an error: [29.337593] systemd-journald[832]: Failed to read journal file /var/log/journal/....

image

Updated/Edited the /etc/apt/sources.list to include debian unstable repo as follows:


sources.list
deb http://deb.debian.org/debian bullseye main contrib non-free
#deb-src http://deb.debian.org/debian bullseye main contrib non-free

deb http://deb.debian.org/debian bullseye-updates main contrib non-free
#deb-src http://deb.debian.org/debian bullseye-updates main contrib non-free

deb http://deb.debian.org/debian bullseye-backports main contrib non-free
#deb-src http://deb.debian.org/debian bullseye-backports main contrib non-free

deb http://security.debian.org/ bullseye-security main contrib non-free
#deb-src http://security.debian.org/ bullseye-security main contrib non-free

deb http://deb.debian.org/debian unstable main contrib non-free
#deb-src http://deb.debian.org/debian unstable main contrib non-free

also had create a /etc/apt/preferences

Package: *
Pin: release a=bullseye
Pin-Priority: 500

Package: *
Pin: release a=unstable
Pin-Priority: 100

Package: gnome-session
Pin: release a=unstable
Pin-Priority: 1000

Package: gnome-shell
Pin: release a=unstable
Pin-Priority: 1000

Package: gnome-backgrounds
Pin: release a=unstable
Pin-Priority: 1000

Package: gnome-applets
Pin: release a=unstable
Pin-Priority: 1000

Package: gnome-control-center
Pin: release a=unstable
Pin-Priority: 1000

Package: mutter-common
Pin: release a=unstable
Pin-Priority: 1000

Package: gjs
Pin: release a=unstable
Pin-Priority: 1000

Package: gnome-tweaks
Pin: release a=unstable
Pin-Priority: 1000

Package: gdm3
Pin: release a=unstable
Pin-Priority: 1000

Package: gnome-disk-utility
Pin: release a=unstable
Pin-Priority: 1000

Package: gnome-terminal
Pin: release a=unstable
Pin-Priority: 1000

Package: gedit
Pin: release a=unstable
Pin-Priority: 1000

Package: nautilus
Pin: release a=unstable
Pin-Priority: 1000

and when I try to install Debian Unstable packages it give an Error:

sudo apt -t unstable install gnome-session gnome-shell gnome-backgrounds...

E: The value 'unstable' is invalid for APT::Default-Release as such a release is not available in he sources

image

On your older Bullseye image (Armbian_22.02.0_Aml_s922x_bullseye_5.15.15_2022.01.16.2138.img.gz) I have NO issue systemd-journald error and NO issue on install Debian Unstable Repo packages on Bullseye.

ophub commented 2 years ago
JFLim1 commented 2 years ago

Remove archived journal files until the disk space they use falls below 10M:

journalctl --vacuum-size=10M

Make all journal files contain no data older than 1 weeks.

journalctl --vacuum-time=1weeks

Just check there are only 4 files /media/jfl/ROOTFS/var/log/journal/195fae7165cf4e08808dd386e9f6e991. with a total size of less than 12 MB.

image

  • Update Software source Install Package Regarding the problem of changing the software source and installing the personalized software package, please try it yourself. Some software sources may not be suitable for your network, and some software packages may not be suitable for your system. Some commands are not necessarily executable on your system. You can search and solve specific problems by yourself.

I have done this a few times, installing minimal gnome desktop or gnome on Bullseye. It had be documented here: https://www.linuxcapable.com/how-to-install-gnome-41-desktop-unstable-on-debian-11-bullseye/

As mentioned earlier, with your earlier image (Armbian_22.02.0_Aml_s922x_bullseye_5.15.15_2022.01.16.2138.img.gz) using the same method, I have successfully install gnome desktop from Debian Unstable without issue.

The issue now seems to be either the edited /etc/apt/sources.list is NOT being recognized or I does not understand the APT Error message.

I am NOT trying to installed personalized source list. Trying to install minimal gnome desktop. I also tried to install full gnome desktop with:

sudo apt -t unstable install gnome

also have the same APT Error!

ophub commented 2 years ago

the following commands can be installed

sudo apt update
sudo apt upgrade -y

sudo nano /etc/apt/sources.list
# add
deb http://deb.debian.org/debian experimental main

sudo apt update
sudo apt -t experimental install gnome-session gnome-shell gnome-backgrounds gnome-applets gnome-control-center mutter gjs
JFLim1 commented 2 years ago

just installed the desktop on jammy yesterday, the following 2 commands can be installed

sudo apt install ubuntu-desktop

Also install desktop on Jammy a week or 2 weeks ago using

sudo apt install ubuntu-desktop No issue. Current using your Armbian Jammy with Ubuntu-Desktop to edit this message.

jfl@armbian:~$ cat /etc/ophub-release
VERSION_CODEID='ubuntu'
VERSION_CODENAME='jammy'
FDTFILE='meson-g12b-gtking-pro.dtb'
UBOOT_OVERLOAD='u-boot-gtkingpro-rev-a.bin'
MAINLINE_UBOOT='/usr/lib/u-boot/'
ANDROID_UBOOT='/usr/lib/u-boot/'
KERNEL_VERSION='5.15.36'
SOC='s922x-reva'
K510='0'
PACKAGED_DATE='2022-04-30'
jfl@armbian:~$

It is puzzling why in the new Armbian-Bullseye image, I cannot install Debian Unstable packages eventhough the sources.list include the reference to Debian Unstable. As far as i know this is normal way of getting Unstable packages on Bullseye with the correct pin to avoid installing all other Debian Unstable packages.

JFLim1 commented 2 years ago

sudo apt update sudo apt upgrade -y sudo apt install gnome-tweaks apt-cache policy gnome-tweaks

Can you try

sudo apt -t unstable install gnome

On your Many 16 2022 Bullseye image?

ophub commented 2 years ago

Install Gnome on Debian 11 Bullseye

sudo apt update
sudo apt upgrade -y

sudo nano /etc/apt/sources.list
# add
deb http://deb.debian.org/debian experimental main

sudo apt update
sudo apt -t experimental install gnome-session gnome-shell gnome-backgrounds gnome-applets gnome-control-center mutter gjs
sync && reboot
JFLim1 commented 2 years ago

I just deleted all the /var/log/journal files and will retry again and report later.

JFLim1 commented 2 years ago

Hi @ophub

Just to feedback.

sudo apt -t unstable install gnome

Works. Most likely my error. Did not perform sudo apt update after editing the /etc/apt/sources.list to include Debian Unstable.

Sorry to have troubled you. Thank you for your support and great works.