2
2

More than 1 year has passed since last update.

Raspberry Piのapt-get upgradeでvlcが壊れてるエラーが出る問題の対処

Posted at

問題

Raspbian Bullseyeになってからか、初回セットアップ時のapt-get upgradeでエラーが出るようになった。vlcが壊れてるらしい。vlcなんて使わないのだけど、これのせいでupgradeができない。

まずはupdate。

$ sudo apt-get update
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done

ここまではOK。次、upgrade。

$ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 vlc-bin : Depends: libvlc-bin (= 3.0.16-1+rpi1+rpt1) but 3.0.16-1+rpi1+rpt2 is to be installed
 vlc-plugin-skins2 : Depends: vlc-plugin-qt (= 3.0.16-1+rpi1+rpt2) but 3.0.16-1+rpi1+rpt1 is to be installed
E: Broken packages

エラーが出てる。

解決方法

dist-upgradeを先にする。

$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following package was automatically installed and is no longer required:
  libfuse2
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
  libbasicusageenvironment1 libgroupsock8 liblivemedia77 libusageenvironment3

<snip>

Setting up raspberrypi-ui-mods (1.20211123) ...
Processing triggers for initramfs-tools (0.140) ...
Processing triggers for libvlc-bin:armhf (3.0.16-1+rpi1+rpt2) ...
Processing triggers for libc-bin (2.31-13+rpt2+rpi1+deb11u2) ...
2
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2