-   Debian (
-   -   Problem after upgrading to Buster from Stretch (

descendant_command 08-06-2019 03:10 AM

This is why mixing distro's is not recommended.
You will need to remove the ubuntu packages to install the proper Debian ones that your new installs are depending on.
Aptitude is probably a better tool than apt for such fun.

ondoho 08-06-2019 03:19 AM

I understand these files have been removed, yes:

root@joseph:/home/joseph# ls /etc/apt/sources.list.d/
atareao-ubuntu-telegram-disco.list                                  home:smplayerdev.list
base.list                                                                                  lubomir-brindza-ubuntu-nautilus-typeahead-disco.list
dockbar-main-ubuntu-ppa-disco.list                                  nilarimogard-ubuntu-webupd8-eoan.list
fossfreedom-ubuntu-rhythmbox-plugins-disco.list      playonlinux.list


But since this is debian, not ubuntu, it still leaves one ubuntu-specific source to be removed:

root@joseph:/home/joseph# cat /etc/apt/sources.list

# deb cdrom:[Official Debian GNU/Linux Live 9.6.0 gnome 2018-11-10T11:54]/ stretch main

# deb cdrom:[Official Debian GNU/Linux Live 9.6.0 gnome 2018-11-10T11:54]/ stretch main

# Line commented out by installer because it failed to verify:
deb stretch/updates main
# Line commented out by installer because it failed to verify:
deb-src stretch/updates main

# stretch-updates, previously known as 'volatile'
# A network mirror was not selected during install.  The following entries
# are provided as examples, but you should amend them as appropriate
# for your mirror of choice.
#deb stretch-updates main
#deb-src stretch-updates main

#deb xenial main
#deb-src xenial main

deb stable main contrib
deb-src stable main contrib

deb buster main
deb buster-updates main
deb buster/updates main

I can see it's commented out now, so it shouldn't cause any harm, but just remove those 2 lines.
Also read:

...and you don't have to run upgrades/dist-upgrades while we're fixing this. Just issue the commands we ask you to enter.

joseph_lewis 08-06-2019 03:38 AM

Thanks Evo
Nautilus is working fine now... :) Thank you evo... :) :D

it doesn't give me any output with these commands.


root@joseph:/home/joseph# dpkg --audit
root@joseph:/home/joseph# dpkg --get-selections | grep -w hold

Now the basic commands are working fine. I'm having problem with running separately installed command line tools. For an example, Hibernate. This command is not working. I remove it and install it again. But it doesn't work. I also used nethogs for network monitoring. It also not working. But it installed. Can you help me with this?

evo2 08-06-2019 03:44 AM


glad you got your packages sorted out. Not getting any output from those commands is a *good* sign.

On Buster, the "correct" way to hibernate is to issue the command to systemd. Eg

systemctl hibernate
Exactly what command are you running? What did you remove and reinstall, and how?


P.S. I highly recommend you read the link,, posted by ondoho. The Debian wiki has been getting much better over the years.

joseph_lewis 08-06-2019 03:48 AM

Thanks ondoho & descendant_command
Those lines I added for gns3. At that time, I didn't know much about linux. I followed the steps I found online to install gns3. But now I understand it's wrong thing to do. I'll keep it in mind and work safely in future. :)

I'll read this link too. :) Thanks for sharing.

joseph_lewis 08-06-2019 04:09 AM

Hello Evo

systemctl hibernate
Command is little slower for me. I found "Hibernate" terminal tool is much faster. I'm not using hibernate that much. But sometimes I use it.

ok now the thing is, I can run nethogs and hibernate commands without using root. I can use "sudo nethogs" to run nethogs and hibernate.

When I try to run "nethogs" in root,


root@joseph:/home/joseph# nethogs
bash: nethogs: command not found

this appear. But I can run it on my account using sudo command. Any idea?

ondoho 08-06-2019 04:34 AM

That's OK, things are running as intended.
To understand, you can look at the output of this command, run as user, with sudo, or as root:

echo "$PATH"

joseph_lewis 08-06-2019 04:37 AM



joseph@joseph:~$ sudo echo "$PATH"


root@joseph:/home/joseph# echo "$PATH"

evo2 08-06-2019 04:47 AM


strange, path is the same for both. As joseph, run:

which nethogs

joseph_lewis 08-06-2019 04:49 AM


joseph@joseph:~$ which nethogs
joseph@joseph:~$ sudo which nethogs

without sudo, it didn't gave me any output. So I tried it with "sudo".

evo2 08-06-2019 05:00 AM


/usr/sbin needs to be in roots PATH. /sbin should be too. I don't know why they are missing. Did you modify /root/bashrc, /root/.profile or /etc/profile or similar?


joseph_lewis 08-06-2019 05:03 AM

Hello Evo
Oh no. I don't remember I did anything like that. However, can you help me with this?

I know what not to touch now. :D Great lesson... :D

evo2 08-06-2019 05:35 AM


to understand which file may have been modified please run the following as root.

md5sum /{root/.,etc/}{bash*,profile}
ls -l /{root/.,etc/}{bash*,profile}

The first command gives a checksum or signature of each file, the second one will show modification time and fiel size.
These can be compared against unmodified versions.


joseph_lewis 08-06-2019 05:39 AM

Hello Evo

root@joseph:/home/joseph# md5sum /{root/.,etc/}{bash*,profile}
203247f2faaa0590983a3cbc2791471f  /root/.bash_history
d41d8cd98f00b204e9800998ecf8427e  /root/.bash_history-01553.tmp
e12f5739f81b08c470f20890304bf53e  /root/.bashrc
46438b614dcb2175148fa7e0bdc604a4  /root/.profile
89269e1298235f1b12b4c16e4065ad0d  /etc/bash.bashrc
md5sum: /etc/bash_completion.d: Is a directory
2255054e61cee1a99dbe893377820dde  /etc/profile

root@joseph:/home/joseph# ls -l /{root/.,etc/}{bash*,profile}
-rw-r--r-- 1 root root 1994 Apr 18 09:42 /etc/bash.bashrc
-rw-r--r-- 1 root root  767 Mar  4  2016 /etc/profile
-rw------- 1 root root 7805 Aug  6 15:13 /root/.bash_history
-rw------- 1 root root    0 Aug  3 18:44 /root/.bash_history-01553.tmp
-rw-r--r-- 1 root root  570 Jan 31  2010 /root/.bashrc
-rw-r--r-- 1 root root  148 Aug 17  2015 /root/.profile

total 4
-rw-r--r-- 1 root root 2384 Aug 31  2016 dkms

evo2 08-06-2019 05:50 AM

Hmm, doesn't look like anything changed from a standard system. Your /etc/profile should be setting roots PATH to include the /sbin directories. How are you getting a root shell? If you use "su -l" should work... are you using "su -p"?


All times are GMT -5. The time now is 04:45 AM.