Nextcloud框Raspberry pi卡在旧内核上

我有nextcloud盒子 。 它使用Ubuntu(核心?)图像和我在Raspberry pi 2上放置的nextcloud snap。我的问题是我没有看到pi升级到更新的内核。 为了更好地解释这种情况,终端的一些结果如下:

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.2 LTS Release: 16.04 Codename: xenial $ uname -r 4.4.0-1017-raspi2 $ snap list Name Version Rev Developer Notes core 16-2 1267 canonical - nextcloud 11.0.2snap2 1190 nextcloud - 

如果一个人去Ubuntu到 “xenial linux-raspi2”部分的主线页面,你会发现有很多更新的内核被发布。

但是如果我跑:

 $ sudo apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension $ sudo apt dist-upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension 

更新默认图像并发生冲突后,忽略的文件出现我不知道如何解决。 我决定使用更新包中的新文件(Ithink)。 我已经读过这个文件,认为没问题。 我可以手动删除,但决定离开那里。 我不知道在防止升级的Ubuntu图像nextcloud盒子里有什么不同。

有没有办法检查哪个选项阻止Ubuntu获取更新的内核并修复它? 那些是Canonical正式发布的内核,所以应该有一种方法来更新它们。

更新:

在尝试解决我发现的关于linux-raspi2包的问题时。 更具体地说,当我进入nextcloudbox(即覆盆子pi2)时,我输入以下内容:

 $ apt-cache policy linux-image*1017-raspi2 linux-image-4.4.0-1017-raspi2: Installed: 4.4.0-1017.23 Candidate: 4.4.0-1017.23 Version table: *** 4.4.0-1017.23 500 500 http://ports.ubuntu.com xenial-updates/universe armhf Packages 500 http://ports.ubuntu.com xenial-security/universe armhf Packages 100 /var/lib/dpkg/status N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension $ apt-cache policy linux-raspi2 linux-raspi2: Installed: (none) Candidate: 4.4.0.1046.45 Version table: 4.4.0.1046.45 500 500 http://ports.ubuntu.com xenial-updates/universe armhf Packages 500 http://ports.ubuntu.com xenial-security/universe armhf Packages 4.4.0.1009.9 500 500 http://ports.ubuntu.com xenial/universe armhf Packages N: Ignoring file '50unattended-upgrades.ucf-dist' in directory '/etc/apt/apt.conf.d/' as it has an invalid filename extension 

当我尝试安装linux-raspi2软件包时,随后的过程确实下载了更新的内核。 当我告诉树莓派重启时,我失去了联系。 意思是我既不能ssh也不能连接到我的路由器(我在路由器上登录为adming而我找不到它)。 我最后用我买的那张照片替换了sd卡上的图像(备份ftw !!)。 在我再次设置之后,我仍然处于最初描述的问题。 内核卡在旧版本中。

我不确定更新出了什么问题。 这是来自/var/lib/dpkg/status linux-image-4.4.0-1017-raspi2的信息

 Package: linux-image-4.4.0-1017-raspi2 Status: install ok installed Priority: optional Section: kernel Installed-Size: 102353 Maintainer: Ubuntu Kernel Team  Architecture: armhf Source: linux-raspi2 Version: 4.4.0-1017.23 Provides: fuse-module, ivtv-modules, kvm-api-4, linux-image, linux- image-3.0, redhat-cluster-modules Depends: initramfs-tools (>= 0.36ubuntu6) | linux-initramfs-tool, kmod Pre-Depends: dpkg (>= 1.10.24) Recommends: flash-kernel Suggests: fdutils, linux-raspi2-tools, linux-headers-4.4.0-1017-raspi2 Conflicts: hotplug (<< 0.0.20040105-1) Description: Linux kernel image for version 4.4.0 on ARM (hard float) SMP This package contains the Linux kernel image for version 4.4.0 on ARM (hard float) SMP. . Also includes the corresponding System.map file, the modules built by the packager, and scripts that try to ensure that the system is not left in an unbootable state after an update. . Supports Generic processors. . Geared toward desktop and server systems. . You likely do not want to install this package directly. Instead, install the linux-raspi2 meta-package, which will ensure that upgrades work correctly, and that supporting packages are also installed. 

所以我所做的( sudo apt install linux-raspi2 )不应该使用rpi2(对吧?)。 但确实如此。 有什么线索吗?

解决方案是放弃官方图像并使用nextcloudpi项目提供的图像。 它基于Raspbian而不是Ubuntu,所以它不能解决Ubuntu范围内的问题,但至少你可以获得Raspberry pi正在运行的内核的安全更新。

Interesting Posts