Error installing sudo NSA325

This forum is for topics dealing with problems with software specifically in the ARMv5 repo.

Error installing sudo NSA325

Postby jeajea » Mon Jan 21, 2019 7:02 pm

Error installing sudo NSA325
Looks like a corrupted file

$this->bbcode_second_pass_code('', '
login as: rsync
rsync@192.168.1.244's password:
Last login: Mon Jan 21 13:13:09 2019 from 192.168.1.69
[rsync@zy01 ~]$ su
Password:
[root@zy01 rsync]# uname -a
Linux zy01 4.4.169-1-ARCH #1 PREEMPT Fri Dec 28 09:00:53 UTC 2018 armv5tel GNU/Linux
[root@zy01 rsync]# pacman -Sy
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
[root@zy01 rsync]# pacman -Sy sudo
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
resolving dependencies...
looking for conflicting packages...

Packages (1) sudo-1.8.27-1

Total Download Size: 0.70 MiB
Total Installed Size: 3.48 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
sudo-1.8.27-1-arm 720.2 KiB 192K/s 00:04 [######################] 100%
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
error: sudo: signature from "Arch Linux ARM Build System <builder@archlinuxarm.org>" is unknown trust
:: File /var/cache/pacman/pkg/sudo-1.8.27-1-arm.pkg.tar.xz is corrupted (invalid or corrupted package (PGP signature)).
Do you want to delete it? [Y/n] n
error: failed to commit transaction (invalid or corrupted package (PGP signature))
Errors occurred, no packages were upgraded.
[root@zy01 rsync]#
')
Jim Anderson
3 Dockstars, 3 Pogoplug V2 and a Zyxel NSA325
Treasure Island, Fl
jeajea
 
Posts: 121
Joined: Wed Aug 25, 2010 4:00 pm

Re: Error installing sudo NSA325

Postby moonman » Tue Jan 22, 2019 3:48 pm

That's because you missed the last step:
https://archlinuxarm.org/platforms/armv ... stallation

$this->bbcode_second_pass_quote('', '7'). Initialize the pacman keyring and populate the Arch Linux ARM package signing keys:

pacman-key --init
pacman-key --populate archlinuxarm
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Error installing sudo NSA325

Postby jeajea » Tue Jan 22, 2019 7:43 pm

I just tried that but it appears I am missing something else.
$this->bbcode_second_pass_code('', '
[root@ns01 ~]# pacman-key --init
gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created
gpg: no ultimately trusted keys found
gpg: starting migration from earlier GnuPG versions
gpg: porting secret keys from '/etc/pacman.d/gnupg/secring.gpg' to gpg-agent
gpg: migration succeeded
gpg: Generating pacman keyring master key...
gpg: key E57544330D98D8D2 marked as ultimately trusted
gpg: directory '/etc/pacman.d/gnupg/openpgp-revocs.d' created
gpg: revocation certificate stored as '/etc/pacman.d/gnupg/openpgp-revocs.d/7D3EE1032CD8CCDE7DAC2CB7E57544330D98D8D2.rev'
gpg: Done
==> Updating trust database...
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u
[root@ns01 ~]# pacman-key --populate archlinuxarm
==> ERROR: The keyring file /usr/share/pacman/keyrings/archlinuxarm.gpg does not exist.
[root@ns01 ~]#

')

Note this is not a new install. However, I did do a Pacman -Syu upgrade and
everything that worked before still works.

I also use the account rsync (not alarm) and have changed the root password.

I hope I can avoid a new install.

The installation instructions probably should mention using su in addition to the root password.
Jim Anderson
3 Dockstars, 3 Pogoplug V2 and a Zyxel NSA325
Treasure Island, Fl
jeajea
 
Posts: 121
Joined: Wed Aug 25, 2010 4:00 pm

Re: Error installing sudo NSA325

Postby jeajea » Tue Jan 22, 2019 9:08 pm

I found I also needed steps four and five on this page

https://archlinuxarm.org/about/package-signing

I installed sudo but visudo is still missing something
$this->bbcode_second_pass_code('', '
login as: rsync
rsync@172.30.30.251's password:
Last login: Tue Jan 22 15:37:44 2019 from 172.30.30.202
[rsync@ns01 ~]$ su
Password:
[root@ns01 rsync]# pacman -Sy
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
[root@ns01 rsync]# pacman -Sy sudo
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date
aur is up to date
resolving dependencies...
looking for conflicting packages...

Packages (1) sudo-1.8.27-1

Total Download Size: 0.70 MiB
Total Installed Size: 3.48 MiB
Net Upgrade Size: 0.47 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
sudo-1.8.27-1-arm 720.2 KiB 1412K/s 00:01 [######################] 100%
(1/1) checking keys in keyring [######################] 100%
(1/1) checking package integrity [######################] 100%
(1/1) loading package files [######################] 100%
(1/1) checking for file conflicts [######################] 100%
(1/1) checking available disk space [######################] 100%
:: Processing package changes...
(1/1) upgrading sudo [######################] 100%
:: Running post-transaction hooks...
(1/2) Creating temporary files...
(2/2) Arming ConditionNeedsUpdate...
[root@ns01 rsync]# visudo
visudo: /usr/lib/libc.so.6: version `GLIBC_2.28' not found (required by visudo)
visudo: /usr/lib/libc.so.6: version `GLIBC_2.27' not found (required by visudo)
visudo: /usr/lib/libc.so.6: version `GLIBC_2.28' not found (required by /usr/lib/sudo/libsudo_util.so.0)
[root@ns01 rsync]# systemctl status haveged
* haveged.service - Entropy Harvesting Daemon
Loaded: loaded (/usr/lib/systemd/system/haveged.service; enabled; vendor pre>
Active: active (running) since Tue 2019-01-22 15:43:10 EST; 12min ago
Docs: man:haveged(8)
Main PID: 244 (haveged)
Memory: 3.2M
CGroup: /system.slice/haveged.service
`-244 /usr/bin/haveged -F -w 1024 -v 1

Jan 22 15:43:10 ns01 systemd[1]: Started Entropy Harvesting Daemon.
Jan 22 15:43:53 ns01 haveged[244]: haveged: ver: 1.9.1; arch: generic; vend: ; >
Jan 22 15:43:53 ns01 haveged[244]: haveged: cpu: (VC); data: 16K (D); inst: 16K>
Jan 22 15:43:53 ns01 haveged[244]: haveged: tot tests(BA8): A:1/1 B:1/1 continu>
Jan 22 15:43:53 ns01 haveged[244]: haveged: fills: 0, generated: 0
[root@ns01 rsync]#

')
Jim Anderson
3 Dockstars, 3 Pogoplug V2 and a Zyxel NSA325
Treasure Island, Fl
jeajea
 
Posts: 121
Joined: Wed Aug 25, 2010 4:00 pm

Re: Error installing sudo NSA325

Postby moonman » Wed Jan 23, 2019 4:39 pm

$this->bbcode_second_pass_code('', 'pacman -Syu')
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: Error installing sudo NSA325

Postby jeajea » Wed Jan 23, 2019 9:43 pm

Thanks for the help.
After I ran

pacman -Syu

again I had to run

pacman-key --populate archlinuxarm

and reinstall sudo.

I also discovered that samba was broken because the services had
been renamed smb and nmb.

I admit it had been a long time since I updated this server.

Now I can log into the rsync account and use “sudo I” to gain root control.
Jim Anderson
3 Dockstars, 3 Pogoplug V2 and a Zyxel NSA325
Treasure Island, Fl
jeajea
 
Posts: 121
Joined: Wed Aug 25, 2010 4:00 pm


Return to ARMv5

Who is online

Users browsing this forum: No registered users and 9 guests

cron