need help: unmet dependencies

2024-08-01 Thread Michael Morgan
Dear all,

I don't know much about linux and need your kind help.

My son's Raspberry Pi 4B's OS is "Debian GNU/Linux 12 (bookworm)" (from
"/etc/os-release").

Yesterday I tried to run "apt update" "apt upgrade", but it stuck at
upgrading package "chromium-browser" (The progress status bar froze; cannot
ssh to it anymore; although I still can ping it).

I had to shut it down and reboot it. I tried it several times but it always
stuck whenever trying to install the package. I also got the following
warning:

You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
 chromium-browser : Depends: chromium-codecs-ffmpeg-extra (=
126.0.6478.164-rpt1) but 122.0.6261.89-rpt1 is to be installed or
 chromium-codecs-ffmpeg (= 126.0.6478.164-rpt1)
but it is not going to be installed
Recommends: chromium-browser-l10n but it is not going
to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or
specify a solution).

When I ran "apt --fix-broken install", I got the following message:

The following additional packages will be installed:
  chromium-browser chromium-codecs-ffmpeg-extra
The following packages will be upgraded:
  chromium-browser chromium-codecs-ffmpeg-extra

But when I continued with the installation, it froze again:
Reading changelogs... 33%

What should I do?

My "/etc/apt/sources.list" is quite simple:
deb http://deb.debian.org/debian bookworm main contrib non-free
non-free-firmware
deb http://deb.debian.org/debian-security/ bookworm-security main contrib
non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free
non-free-firmware

Thank you very much!

Michael


help: apt stuck at 0% [Waiting for headers]

2021-07-21 Thread Michael Morgan
Dear friends,

I need some help here. I worked in a university and have a linux (debian 9)
machine with DHCP. For some reason I needed a static IP and two weeks ago
the university sent someone who helped me set up the static IP. From what I
saw the file they modified is the "/etc/network/interfaces".

However, I found that now I cannot update/install packages. "apt update"
stuck at "0% [Waiting for headers]" for a long time and then give the
following message:

Ign:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ftp.us.debian.org/debian stretch InRelease
Err:3 http://security.debian.org/debian-security stretch/updates Release
  Connection failed [IP: 151.101.50.132 80]
Ign:4 http://ftp.us.debian.org/debian stretch-updates InRelease
Err:5 http://ftp.us.debian.org/debian stretch Release
  Connection failed [IP: 128.61.240.89 80]
Err:6 http://ftp.us.debian.org/debian stretch-updates Release
  Connection failed [IP: 128.61.240.89 80]
Reading package lists... Done
E: The repository 'http://security.debian.org/debian-security
stretch/updates Release' does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration
details.
E: The repository 'http://ftp.us.debian.org/debian stretch Release' does no
longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration
details.
E: The repository 'http://ftp.us.debian.org/debian stretch-updates Release'
does no longer have a Release file.
N: Updating from such a repository can't be done securely, and is therefore
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration
details.

"apt list package_name" still gives information about the package, but "apt
install package_name" is stuck at "0% [Waiting for headers]".

The internet connection has no problem. DNS seems fine as well. I can ping
for example security.debian.org or 8.8.8.8.

My "/etc/apt/sources.list" file is:

deb http://ftp.us.debian.org/debian/ stretch main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch main contrib non-free

deb http://security.debian.org/debian-security stretch/updates main contrib
non-free
deb-src http://security.debian.org/debian-security stretch/updates main
contrib non-free

# stretch-updates, previously known as 'volatile'
deb http://ftp.us.debian.org/debian/ stretch-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian/ stretch-updates main contrib
non-free

My other debian 9 machines with same sources.list file have no problems so
I guess it must be related to the change of static IP. But I cannot figure
out what is wrong. I have tried "apt clean" but it did help.

Thank you very much!
Michael


turn off receiving email

2020-11-11 Thread Michael Morgan
Dear friend,

 

A simple and silly question: how to subscribe to this mail list and set up
not to receive email? I only found a digest option when subscribing. 

 

Thank you very much.

 

Michael



how to remove GUI

2020-09-10 Thread Michael Morgan
Dear friend, 

 

I recently installed Debian 9.13 on my machine. I was planning to use it for
scientific computation so GUI is not necessary. For some reason, I installed
the desktop environment with LXDE desktop during installation. Later I
decided to remove them. These two commands were executed:

 

tasksel remove desktop

apt purge $(tasksel --task-packages desktop)

 

However, after rebooting the system still has GUI. Here is the result of
"tasksel --list-tasks":

 

u desktop   Debian desktop environment

u gnome-desktop GNOME

u xfce-desktop  Xfce

u kde-desktop   KDE

u cinnamon-desktop  Cinnamon

u mate-desktop  MATE

u lxde-desktop  LXDE

u web-serverweb server

i print-server  print server

i ssh-serverSSH server

u laptoplaptop

 

So it seems the desktop package was removed. But why it still has GUI?

 

It is pretty much an absolute clean installation. The only thing I did
between OS installation and removing GUI is the installation of cuda package
(for GPU driver). "nvidia-smi" gives: 

 

|0  1730  G   /usr/lib/xorg/Xorg
132MiB |

|0  2285  G   kwin_x11
17MiB |

|0  2292  G   /usr/bin/krunner
2MiB |

|0  2295  G   /usr/bin/plasmashell
45MiB |

|0  3091  G   ...4-linux-gnu/libexec/kscreenlocker_greet
28MiB

 

So plasmashell and x11 are not part of desktop? What is the correct way to
completely remove GUI?

 

Thank you.

 

Michael



files under /boot

2020-05-28 Thread Michael Morgan
Dear friends,

 

Here are files under my /boot directory:

 

# ls -l

-rw-r--r-- 1 root root   186716 Nov 11  2019 config-4.9.0-11-amd64

-rw-r--r-- 1 root root   186696 Jan 20 12:38 config-4.9.0-12-amd64

drwxr-xr-x 5 root root 4096 May 28 20:14 grub

-rw-r--r-- 1 root root 18158152 May  1 01:18 initrd.img-4.9.0-11-amd64

-rw-r--r-- 1 root root 18818504 May 28 20:14 initrd.img-4.9.0-12-amd64

-rw-r--r-- 1 root root  3204823 Nov 11  2019 System.map-4.9.0-11-amd64

-rw-r--r-- 1 root root  3206712 Jan 20 12:38 System.map-4.9.0-12-amd64

-rw-r--r-- 1 root root  4249376 Nov 11  2019 vmlinuz-4.9.0-11-amd64

-rw-r--r-- 1 root root  4261664 Jan 20 12:38 vmlinuz-4.9.0-12-amd64

 

# hostnamectl

  .

  Operating System: Debian GNU/Linux 9 (stretch)

Kernel: Linux 4.9.0-12-amd64

  Architecture: x86-64

 

Is it fine I delete all 4.9.0-11 files under /boot?

 

Thank you very much.

 

Michael



mount an external usb hdd and share it through samba

2020-05-06 Thread Michael Morgan
Dear all,

 

I have an external usb hdd. I would like to automount it on boot and share
it through samba.

 

1) So I put it in the fstab. It automounts correctly on boot, no problem:

UUID=XXX /usb-hdd ext4 defaults,nofail 0 0

 

2) I then share the directory "/usb-hdd" through samba (in smb.conf) after
it was mounted. No problem again:

[usb-hdd]

comment = raid5-usb

path = /usb-hdd

read only = No

valid users = michaelm

 

3) however, if the machine restarts, automounts works but the samba share
always fails. I can easily fix it by:

systemctl restart smbd 

 

Since automount works, and samba will work well if I restart it, my guess is
that on boot, samba (smbd service) starts before /usb-hdd is mounted. To
make it working, 
I need make sure the fstab mounting happens before samba starts. Can anyone
tell me how to do it? Or, any better solution for auto mount and share a usb
HDD?

 

Thank you very much.

Micahel Morgan