Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

22.04 OP5+ Ubuntu server image: Samba / avahi install fails #854

Closed
icojb25 opened this issue Jun 1, 2024 · 6 comments
Closed

22.04 OP5+ Ubuntu server image: Samba / avahi install fails #854

icojb25 opened this issue Jun 1, 2024 · 6 comments
Assignees
Labels
Ubuntu 22.04 Affects Ubuntu 22.04

Comments

@icojb25
Copy link

icojb25 commented Jun 1, 2024

I get the following on my OP5+ with the 22.04 image when trying to install avahi-daemon

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
avahi-daemon is already the newest version (0.8-5ubuntu5.2).
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up flash-kernel (3.104ubuntu16+21) ...
flash-kernel: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-1005-rockchip
flash-kernel: installing version 5.10.0-1005-rockchip
mv: cannot move '/tmp/flash-kernel.F6zaIu3J/vmlinuz' to '/boot/firmware/vmlinuz'
: No such file or directory
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
 installed initramfs-tools package post-installation script subprocess returned 
error exit status 1
Errors were encountered while processing:
 initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any ideas?

@Joshua-Riek Joshua-Riek self-assigned this Jun 1, 2024
@Joshua-Riek Joshua-Riek added the Ubuntu 22.04 Affects Ubuntu 22.04 label Jun 1, 2024
@Joshua-Riek
Copy link
Owner

You installed the flash-kernel package for some reason, please remove it with the below command:

sudo apt-get purge -y flash-kernel

@icojb25
Copy link
Author

icojb25 commented Jun 2, 2024

Thanks a lot. That worked.

Any idea how that would have been installed? I am almost 100% sure i did not install it. I have (had) a clean install of 22.04 server with only Casa OS over the top. I believe I installed avahi myself afterwards.

In any event, thanks a lot.

@Joshua-Riek
Copy link
Owner

I cant say there are a lot of factors. But I will keep a general eye out as if a user updates their system after a release and this package is installed I would say that is an issue.

@icojb25
Copy link
Author

icojb25 commented Jun 5, 2024

I guess this happened again ... I removed the flash-kernel package which fixed up the problem, but running sudo apt update && sudo apt upgrade -y again results in that package being installed again?

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
linux-headers-5.10.0-1004-rockchip linux-image-5.10.0-1004-rockchip linux-modules-5.10.0-1004-rockchip linux modules-extra-5.10.0-1004-rockchip linux-rockchip-headers-5.10.0-1004
Use 'sudo apt autoremove' to remove them.
Get more security updates through Ubuntu Pro with 'esm-apps' enabled:
imagemagick libopenexr25 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
imagemagick-6.q16 libmagickcore-6.q16-6 imagemagick-6-common libde265-0
Learn more about Ubuntu Pro at https://ubuntu.com/pro
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: deferring update (trigger activated)
Setting up flash-kernel (3.104ubuntu16+21) ...
flash-kernel: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.140ubuntu13.4) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-1006-rockchip
flash-kernel: installing version 5.10.0-1006-rockchip
mv: cannot move '/tmp/flash-kernel.uXT7ufou/vmlinuz' to '/boot/firmware/vmlinuz': No such file or directory
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
installed initramfs-tools package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
initramfs-tools
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

@Joshua-Riek
Copy link
Owner

I found the issue Joshua-Riek/linux-rockchip@d245a21, uploading a new kernel now.

@icojb25
Copy link
Author

icojb25 commented Jun 6, 2024

Thanks a lot for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ubuntu 22.04 Affects Ubuntu 22.04
Projects
None yet
Development

No branches or pull requests

2 participants