Apt configuration setup

Greetings,

I have been unable to apt-get update

What is the proper setup for apt repos and keys?

Thanks much!

root@KensStarFive:/etc/apt# cat sources.list

deb https://snapshot.debian.org/archive/debian-ports/20220616T194833Z unstable main
root@KensStarFive:/etc/apt# ls keyrings/
root@KensStarFive:/etc/apt# apt-get update
Hit:1 https://snapshot.debian.org/archive/debian-ports/20220616T194833Z unstable InRelease
Err:1 https://snapshot.debian.org/archive/debian-ports/20220616T194833Z unstable InRelease
The following signatures were invalid: EXPKEYSIG E852514F5DF312F6 Debian Ports Archive Automatic Signing Key (2022) ftpmaster@ports-master.debian.org
Reading package lists… Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://snapshot.debian.org/archive/debian-ports/20220616T194833Z unstable InRelease: The following signatures were invalid: EXPKEYSIG E852514F5DF312F6 Debian Ports Archive Automatic Signing Key (2022) ftpmaster@ports-master.debian.org
W: Failed to fetch https://snapshot.debian.org/archive/debian-ports/20220616T194833Z/dists/unstable/InRelease The following signatures were invalid: EXPKEYSIG E852514F5DF312F6 Debian Ports Archive Automatic Signing Key (2022) ftpmaster@ports-master.debian.org
W: Some index files failed to download. They have been ignored, or old ones used instead.

root@KensStarFive:/etc/apt#

1 Like

This is a known problem. Have a look at the discussion here: VisionFive 2 Debian Image Released - #83 by omac777

Kind regards!

Great! Got apt working.

However, after upgrade the lightdm fails, so no HDMI output. How to restore??

1 Like

Here is the formula I used:

There is a much simpler solution:

1- download the debian-ports-archive-keyring_2023.02.01_all.deb package from https://deb.debian.org/debian-ports/pool/main/d/debian-ports-archive-keyring/debian-ports-archive-keyring_2023.02.01_all.deb with wget or curl,
install with dpkg -i debian-ports-archive-keyring_2023.02.01_all.deb

2-Use the regular unstable ports directory in /etc/apt/sources.list:
deb Index of /debian-ports unstable main
instead of (or comment out)
#deb https://snapshot.debian.org/archive/debian-ports/20220616T194833Z unstable main

Does this help to fix the lightdm issue?

No joy yet. 8^{
Looking at lightdm setup docs.

config:
root@KensStarFive:/etc/lightdm# lightdm --show-config
[Seat:*]
A greeter-session=lightdm-greeter
A greeter-hide-users=true
A session-wrapper=/etc/X11/Xsession
B display-setup-script=xrandr -s 1920x1080
B autologin-user=user
B autologin-user-timeout=0

Sources:
A /usr/share/lightdm/lightdm.conf.d/01_debian.conf
B /etc/lightdm/lightdm.conf

lightdm.log:
+0.00s] DEBUG: Logging to /var/log/lightdm/lightdm.log
[+0.00s] DEBUG: Starting Light Display Manager 1.26.0, UID=0 PID=2592
[+0.00s] DEBUG: Loading configuration dirs from /usr/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /usr/share/lightdm/lightdm.conf.d/01_debian.conf
[+0.00s] DEBUG: Loading configuration dirs from /usr/local/share/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration dirs from /etc/xdg/lightdm/lightdm.conf.d
[+0.00s] DEBUG: Loading configuration from /etc/lightdm/lightdm.conf
[+0.00s] DEBUG: Registered seat module local
[+0.00s] DEBUG: Registered seat module xremote
[+0.00s] DEBUG: Registered seat module unity
[+0.00s] DEBUG: Using D-Bus name org.freedesktop.DisplayManager
[+0.01s] DEBUG: Using cross-namespace EXTERNAL authentication (this will deadlock if server is GDBus < 2.73.3)
[+0.01s] DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’
[+0.01s] DEBUG: Monitoring logind for seats
[+0.01s] DEBUG: New seat added from logind: seat0
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Loading properties from config section Seat:*
[+0.01s] DEBUG: Seat seat0 has property CanMultiSession=no
[+0.01s] DEBUG: Seat seat0: Starting
[+0.01s] DEBUG: Seat seat0: Creating user session
[+0.01s] DEBUG: Loading users from org.freedesktop.Accounts
[+0.02s] DEBUG: User /org/freedesktop/Accounts/User1000 added
[+0.03s] DEBUG: Seat seat0: Creating display server of type x
[+0.04s] DEBUG: Using VT 7
[+0.04s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.04s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.04s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.04s] DEBUG: XServer 0: Launching X Server
[+0.04s] DEBUG: Launching process 2598: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.04s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.04s] DEBUG: Acquired bus name org.freedesktop.DisplayManager
[+0.04s] DEBUG: Registering seat with bus path /org/freedesktop/DisplayManager/Seat0
[+0.08s] DEBUG: Process 2598 exited with return value 1
[+0.08s] DEBUG: XServer 0: X server stopped
[+0.08s] DEBUG: Releasing VT 7
[+0.08s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
[+0.08s] DEBUG: Seat seat0: Display server stopped
[+0.08s] DEBUG: Seat seat0: Stopping session
[+0.08s] DEBUG: Seat seat0: Session stopped
+0.09s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.09s] DEBUG: Seat seat0: Active display server stopped, starting greeter
[+0.09s] DEBUG: Seat seat0: Creating greeter session
[+0.09s] DEBUG: Seat seat0: Creating display server of type x
[+0.09s] DEBUG: Using VT 7
[+0.09s] DEBUG: Seat seat0: Starting local X display on VT 7
[+0.09s] DEBUG: XServer 0: Logging to /var/log/lightdm/x-0.log
[+0.09s] DEBUG: XServer 0: Writing X server authority to /var/run/lightdm/root/:0
[+0.09s] DEBUG: XServer 0: Launching X Server
[+0.09s] DEBUG: Launching process 2599: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
[+0.09s] DEBUG: XServer 0: Waiting for ready signal from X server :0
[+0.12s] DEBUG: Process 2599 exited with return value 1
[+0.12s] DEBUG: XServer 0: X server stopped
[+0.12s] DEBUG: Releasing VT 7
[+0.12s] DEBUG: XServer 0: Removing X server authority /var/run/lightdm/root/:0
[+0.12s] DEBUG: Seat seat0: Display server stopped
[+0.12s] DEBUG: Seat seat0: Stopping session
[+0.12s] DEBUG: Seat seat0: Session stopped
[+0.12s] DEBUG: Seat seat0: Stopping display server, no sessions require it
[+0.12s] DEBUG: Seat seat0: Stopping; greeter display serve

Hi.
I am trying to bring up Ubuntu image on VisionFive2 board using SD card.
I flashed the ubuntu-23.04-preinstalled-server-riscv64+visionfive2.img into micro-SD card using BalenaEtcher software.
I follow the steps to install ubuntu image on VisionFive2 board as:

  1. The boot mode set to SPI flash (DIP switches RGPIO_0 = 0, RGPIO_1 = 0) as the Ubuntu image comes without U-Boot.
  2. Connect to the UART using a UART-TTL USB adapter. For accessing the serial console you can use minicom:
    sudo minicom -D /dev/ttyUSB0 -b 115200
  3. Insert the SD card, Connect Ethernet cable and power on the board.
  4. Booted successfully and able to login with user ubuntu and the password ubuntu.
  5. After login, I found the IP address of VisionFive2 board by using command as ip a.
  6. I have confirmed that ssh, scp and ping are working correctly.
  7. Then, I run the command for basic package installation as, sudo apt-get update. After running that command, I am getting an error as shown in below figure.

Any suggestions!!!

Thanks.

Your date/time are wrong. Set them correctly with the “date” command or use the GUI.
Aubrey

2 Likes

Now it’s working, Thanks.

1 Like