Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Cannot upgrade RPi4

Thu Jan 23, 2020 3:29 pm

Hello,

When I run upgrade, the following message appears:

[email protected]:~ $ sudo apt-get upgrade
Reading package lists... Done
Building dependency tree
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.8-0+deb10u1+rpt1) but 3.0.8-0+deb10u1+rpt7 is to be installed
vlc-plugin-skins2 : Depends: vlc-plugin-qt (= 3.0.8-0+deb10u1+rpt7) but 3.0.8-0+deb10u1+rpt1 is to be installed
E: Broken packages


Any comments ?

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6183
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 3:49 pm

and if you run 'sudo apt update' first?

Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 3:56 pm

yes:
[email protected]:~ $ sudo apt-get update
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6183
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 4:19 pm

what does 'apt policy vlc-bin' say?

Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 4:29 pm

[email protected]:~ $ apt policy vlc-bin
vlc-bin:
Installed: 3.0.8-0+deb10u1+rpt1
Candidate: 3.0.8-0+deb10u1+rpt7
Version table:
3.0.8-0+deb10u1+rpt7 500
500 http://archive.raspberrypi.org/debian buster/main armhf Packages
*** 3.0.8-0+deb10u1+rpt1 100
100 /var/lib/dpkg/status
3.0.8-0+deb10u1 500
500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages

User avatar
Botspot
Posts: 487
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 4:40 pm

Run this command, but do not type Y.

Code: Select all

sudo aptitude upgrade
Tell us what it says.
Ever wanted to run an .img file before flashing it to an SD card?
Or wished you could run Stretch on a Pi 4?
Or wanted to run two versions of Raspbian on a single Pi simultaneously?
You can do all of that, and more, with my Vdesktop script - http://bit.ly/VDESKTOP

Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 4:44 pm

[email protected]:~ $ sudo aptitude upgrade
sudo: aptitude: command not found

User avatar
Botspot
Posts: 487
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 4:48 pm

Pavel_47 wrote:
Thu Jan 23, 2020 4:44 pm
aptitude: command not found
:roll: Yeah I forgot that aptitude isn't installed by default.

Code: Select all

sudo apt install -y aptitude
PS. To format the output correctly just push the Code button.
Ever wanted to run an .img file before flashing it to an SD card?
Or wished you could run Stretch on a Pi 4?
Or wanted to run two versions of Raspbian on a single Pi simultaneously?
You can do all of that, and more, with my Vdesktop script - http://bit.ly/VDESKTOP

Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 4:52 pm

[email protected]:~ $ sudo aptitude upgrade
.
.
.
210 packages upgraded, 4 newly installed, 13 to remove and 0 not upgraded.
Need to get 695 MB of archives. After unpacking 23.3 MB will be used.
Do you want to continue? [Y/n/?]


Should I type n ?

User avatar
Botspot
Posts: 487
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 5:01 pm

Yes, type n for now. Aptitude is different than apt in that it always finds a way to get around problems. Sometimes its 'solution' involves uninstalling important stuff like lxde.

Please post what 13 packages aptitude wants to uninstall.
Last edited by Botspot on Thu Jan 23, 2020 5:11 pm, edited 1 time in total.
Ever wanted to run an .img file before flashing it to an SD card?
Or wished you could run Stretch on a Pi 4?
Or wanted to run two versions of Raspbian on a single Pi simultaneously?
You can do all of that, and more, with my Vdesktop script - http://bit.ly/VDESKTOP

Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 5:04 pm

[email protected]:~ $ sudo aptitude upgrade
Warning: Invalid locale (please review locale settings, this might lead to problems later):
locale::facet::_S_create_c_locale name not valid
Resolving dependencies...
The following NEW packages will be installed:
bubblewrap{a} eject{a} libdav1d3{a} xdg-dbus-proxy{a}
The following packages will be REMOVED:
alsa-base{u} gstreamer0.10-alsa{u} gstreamer0.10-plugins-base{u} libgstreamer-plugins-base0.10-0{u}
libgstreamer0.10-0{u} libva-wayland2{u} libxfce4util-bin{u} libxfce4util-common{u} libxfce4util7{u} libxfconf-0-2{u}
pimixer{u} point-rpi{u} xfconf{u}
The following packages will be upgraded:
arandr base-files chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg-extra cron dhcpcd5 distro-info-data
e2fsprogs ffmpeg file firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek
fonts-opensymbol freetype2-doc git git-man gldriver-test gtk2-engines-pixflat libarchive13 libavcodec58
libavdevice58 libavfilter7 libavformat58 libavresample4 libavutil56 libcom-err2 libegl-mesa0 libext2fs2 libfm-data
libfm-extra4 libfm-gtk-data libfm-gtk4 libfm-modules libfm4 libfreetype6 libfreetype6-dev libfribidi0 libgbm1
libgl1-mesa-dri libglapi-mesa libgles2-mesa libglib2.0-0 libglib2.0-bin libglib2.0-data libglx-mesa0 libgs9
libgs9-common libjavascriptcoregtk-4.0-18 libmagic-mgc libmagic1 libmp3lame0 libmtdev1 libncurses5 libncurses6
libncursesw5 libncursesw6 libnss3 libobrender32v5 libobt2v5 libogg0 libpam-systemd libpostproc55 libpython2.7
libpython2.7-dev libpython2.7-minimal libpython2.7-stdlib libraspberrypi-bin libraspberrypi-dev libraspberrypi-doc
libraspberrypi0 libraw1394-11 libreoffice libreoffice-avmedia-backend-gstreamer libreoffice-base
libreoffice-base-core libreoffice-base-drivers libreoffice-calc libreoffice-common libreoffice-core libreoffice-draw
libreoffice-gtk3 libreoffice-help-common libreoffice-help-en-gb libreoffice-impress libreoffice-java-common
libreoffice-l10n-en-gb libreoffice-librelogo libreoffice-math libreoffice-nlpsolver libreoffice-report-builder
libreoffice-report-builder-bin libreoffice-script-provider-bsh libreoffice-script-provider-js
libreoffice-script-provider-python libreoffice-sdbc-firebird libreoffice-sdbc-hsqldb libreoffice-sdbc-postgresql
libreoffice-style-colibre libreoffice-style-tango libreoffice-wiki-publisher libreoffice-writer libruby2.5
libsasl2-2 libsasl2-modules-db libsord-0-0 libspeex1 libspeexdsp1 libss2 libssl-dev libssl1.1 libswresample3
libswscale5 libsystemd0 libtiff5 libtinfo5 libtinfo6 libudev1 libvlc-bin libvlc5 libvlccore9 libvpx5
libwebkit2gtk-4.0-37 libxaw7 libxcb-util0 libxdamage1 libxml2 libxmu6 libxmuu1 libxslt1.1 libxt-dev libxt6 lxpanel
lxpanel-data lxplug-bluetooth lxplug-ejecter lxplug-ptbatt lxplug-volume mesa-va-drivers mesa-vdpau-drivers
ncurses-base ncurses-bin ncurses-term nodered obconf openbox openjdk-11-jdk openjdk-11-jdk-headless openjdk-11-jre
openjdk-11-jre-headless openssh-client openssh-server openssh-sftp-server openssl pcmanfm pi-bluetooth piclone
pipanel piwiz pixflat-icons python-cryptography python-piglow python-spidev python-werkzeug python2.7 python2.7-dev
python2.7-minimal python3-cryptography python3-piglow python3-spidev python3-uno python3-werkzeug
raspberrypi-bootloader raspberrypi-kernel raspberrypi-sys-mods raspberrypi-ui-mods raspi-gpio rc-gui
realvnc-vnc-server realvnc-vnc-viewer rp-prefapps rpcbind rpi-chromium-mods rpi-eeprom rpi-eeprom-images ruby2.5 ssh
sudo systemd systemd-sysv thonny udev uno-libs3 ure vlc vlc-bin vlc-data vlc-l10n vlc-plugin-base vlc-plugin-notify
vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-output vlc-plugin-video-splitter
vlc-plugin-visualization wpasupplicant
The following packages are RECOMMENDED but will NOT be installed:
awesome cinnamon citadel-server courier-mta cups dma dunst e2fsprogs-l10n esmtp-run exim4-daemon-heavy
exim4-daemon-light gnome-flashback gnome-shell gstreamer1.0-gl libnotify-bin libnss-systemd libsasl2-modules
lxqt-notificationd masqmail mate-notification-daemon msmtp-mta notification-daemon notify-osd nullmailer obsession
opensmtpd pavucontrol plasma-workspace postfix python-jarabe qmail-run rpd-icons sendmail-bin ssmtp xfce4-notifyd
xmail
210 packages upgraded, 4 newly installed, 13 to remove and 0 not upgraded.
Need to get 695 MB of archives. After unpacking 23.3 MB will be used.
Do you want to continue? [Y/n/?] n
Abort.
[email protected]:~ $

User avatar
Botspot
Posts: 487
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 5:10 pm

Looks good. Go ahead and type y. Then go get some coffee, this will take a while! ;)
Ever wanted to run an .img file before flashing it to an SD card?
Or wished you could run Stretch on a Pi 4?
Or wanted to run two versions of Raspbian on a single Pi simultaneously?
You can do all of that, and more, with my Vdesktop script - http://bit.ly/VDESKTOP

Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 5:14 pm

Ok, running ...

User avatar
Botspot
Posts: 487
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 5:19 pm

Pavel_47 wrote:
Thu Jan 23, 2020 5:04 pm
Warning: Invalid locale (please review locale settings, this might lead to problems later):
locale::facet::_S_create_c_locale name not valid
Try resetting your locale using sudo raspi-config --> Localisation Options --> Change Locale.
Generate the locale you want and follow the instructions.
Ever wanted to run an .img file before flashing it to an SD card?
Or wished you could run Stretch on a Pi 4?
Or wanted to run two versions of Raspbian on a single Pi simultaneously?
You can do all of that, and more, with my Vdesktop script - http://bit.ly/VDESKTOP

DirkS
Posts: 10130
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 5:28 pm

Botspot wrote:
Thu Jan 23, 2020 5:10 pm
Looks good. Go ahead and type y. Then go get some coffee, this will take a while! ;)
And since there's an updated kernel in the update you need to reboot when it's done

Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 5:35 pm

Done.
Concerning local option here is what I did (not sure that everything is OK):

[email protected]:~ $ sudo raspi-config
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "fr_FR.UTF-8",
LC_MONETARY = "fr_FR.UTF-8",
LC_ADDRESS = "fr_FR.UTF-8",
LC_TELEPHONE = "fr_FR.UTF-8",
LC_NAME = "fr_FR.UTF-8",
LC_MEASUREMENT = "fr_FR.UTF-8",
LC_IDENTIFICATION = "fr_FR.UTF-8",
LC_NUMERIC = "fr_FR.UTF-8",
LC_PAPER = "fr_FR.UTF-8",
LANG = "en_GB.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_GB.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory
/usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory
Generating locales (this might take a while)...
en_GB.UTF-8... done
fr_CH.UTF-8... done
Generation complete.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "fr_FR.UTF-8",
LC_MONETARY = "fr_FR.UTF-8",
LC_ADDRESS = "fr_FR.UTF-8",
LC_TELEPHONE = "fr_FR.UTF-8",
LC_NAME = "fr_FR.UTF-8",
LC_MEASUREMENT = "fr_FR.UTF-8",
LC_IDENTIFICATION = "fr_FR.UTF-8",
LC_NUMERIC = "fr_FR.UTF-8",
LC_PAPER = "fr_FR.UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_TIME = "fr_FR.UTF-8",
LC_MONETARY = "fr_FR.UTF-8",
LC_ADDRESS = "fr_FR.UTF-8",
LC_TELEPHONE = "fr_FR.UTF-8",
LC_NAME = "fr_FR.UTF-8",
LC_MEASUREMENT = "fr_FR.UTF-8",
LC_IDENTIFICATION = "fr_FR.UTF-8",
LC_NUMERIC = "fr_FR.UTF-8",
LC_PAPER = "fr_FR.UTF-8",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").


The goal was keep English as system language, but locate time to Europe (Paris, Berlin, etc.) and keyboard to "QWERTZ" (French-Switzerland)

Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 5:43 pm

After reboot I've discovered, that IP was changed.
Is it normal ?

I've tried with new IP, but old password (i.e. raspberry) isn't recognized.
Any comments ?

User avatar
Botspot
Posts: 487
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 5:54 pm

Pavel_47 wrote:
Thu Jan 23, 2020 5:35 pm
The goal was keep English as system language, but locate time to Europe (Paris, Berlin, etc.) and keyboard to "QWERTZ" (French-Switzerland)
I know barely anything about locales, but try generating just one locale and see if it still errors. Then use raspi-config to change the keyboard and timezone.
Pavel_47 wrote:
Thu Jan 23, 2020 5:43 pm
After reboot I've discovered, that IP was changed.
Is it normal ?
Have you enabled a static IP for your Pi? If not, it will take on whatever IP the router assigns it. (which can change on a reboot)
Pavel_47 wrote:
Thu Jan 23, 2020 5:43 pm
I've tried with new IP, but old password (i.e. raspberry) isn't recognized.
Any comments ?
Passwords don't change like that.
I'll assume you connect to your Pi using VNC.
Make sure you aren't trying to connect to the wrong device. VNC can error the username or password is incorrect, when in reality you tried to connect to a printer or something.
Ever wanted to run an .img file before flashing it to an SD card?
Or wished you could run Stretch on a Pi 4?
Or wanted to run two versions of Raspbian on a single Pi simultaneously?
You can do all of that, and more, with my Vdesktop script - http://bit.ly/VDESKTOP

Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 6:04 pm

When I've tried to connect just after reboot, I saw this message:

[email protected]:~$ ssh [email protected]
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for raspberrypi.local has changed,
and the key for the corresponding IP address 192.168.1.175
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
SHA256:7QJ+YWf79mDa2Wh9jxo/SAVDAFxtd28kTsVRiSMr/J4.
Please contact your system administrator.
Add correct host key in /home/pavel/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/pavel/.ssh/known_hosts:2
remove with:
ssh-keygen -f "/home/pavel/.ssh/known_hosts" -R "raspberrypi.local"
ECDSA host key for raspberrypi.local has changed and you have requested strict checking.
Host key verification failed.


Have you enabled a static IP for your Pi? If not, it will take on whatever IP the router assigns it. (which can change on a reboot)
No

I'll assume you connect to your Pi using VNC.

No

User avatar
DougieLawson
Posts: 37111
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 6:21 pm

For any machine in your LAN you should be able to trust it (or it shouldn't be on your LAN).

So that known hosts stuff is just annoying noise.

There's three solutions:

1. Just delete the offending key.
2. Delete ~/.ssh/known_hosts then accept the "connecting to a new system" message.
3. Disable known_hosts for any system in your 192.168.1.0/24 subnet.

/etc/ssh/ssh_config

Code: Select all

Host 192.168.1.*
  StrictHostKeyChecking no 
  UserKnownHostsFile /dev/null
  LogLevel QUIET
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

User avatar
Botspot
Posts: 487
Joined: Thu Jan 17, 2019 9:47 pm
Location: Texas

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 6:24 pm

Pavel_47 wrote:
Thu Jan 23, 2020 6:04 pm
Botspot wrote:Have you enabled a static IP for your Pi? If not, it will take on whatever IP the router assigns it. (which can change on a reboot)
No
Then it's normal for the IP to change. If that's undesirable, just enable a static IP.
Ever wanted to run an .img file before flashing it to an SD card?
Or wished you could run Stretch on a Pi 4?
Or wanted to run two versions of Raspbian on a single Pi simultaneously?
You can do all of that, and more, with my Vdesktop script - http://bit.ly/VDESKTOP

Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 6:33 pm

Just delete the offending key
How ?

Disable known_hosts for any system in your 192.168.1.0/24 subnet.
In /etc/ssh/ssh_config the only part that isn't commented is:
SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication yes

User avatar
Imperf3kt
Posts: 3232
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 6:51 pm

please don't tell me you haven't changed the password yet...
One of the very first things you should do with a Pi is change the default password.
55:55:44:44:4C
52:4C:52:42:41

Pavel_47
Posts: 97
Joined: Mon Jun 12, 2017 8:34 am
Location: Switzerland

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 7:28 pm

Yes it's the case, I didn't change a password yet.
But I started to exploit this RPi4 few days ago.
But in fact, I can't just do it because RPi is inaccessible.

User avatar
Imperf3kt
Posts: 3232
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: Cannot upgrade RPi4

Thu Jan 23, 2020 8:33 pm

Then you need to reflash the SD card and change the password next time.
by not doing so, millions of people or bots with ill intentions can access your Pi, installing whatever they like, doing shady things and possibly stealing your other data (like passwords to other sites, your banking details, your location based on your IP, etc) without you even knowing.

It might also explain the behaviour you are seeing right now.
55:55:44:44:4C
52:4C:52:42:41

Return to “Troubleshooting”