LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-06-2019, 03:10 AM   #16
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,708

Rep: Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528Reputation: 528

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.
 
Old 08-06-2019, 03:19 AM   #17
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,533
Blog Entries: 9

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
I understand these files have been removed, yes:
Code:
root@joseph:/home/joseph# ls /etc/apt/sources.list.d/
atareao-ubuntu-telegram-disco.list		      google-chrome.list.save
atareao-ubuntu-telegram-disco.list.save		      home:smplayerdev.list
base.list					      home:smplayerdev.list.save
base.list.save					      lubomir-brindza-ubuntu-nautilus-typeahead-disco.list
dockbar-main-ubuntu-ppa-disco.list		      lubomir-brindza-ubuntu-nautilus-typeahead-disco.list.save
dockbar-main-ubuntu-ppa-disco.list.save		      nilarimogard-ubuntu-webupd8-eoan.list
fossfreedom-ubuntu-rhythmbox-plugins-disco.list       playonlinux.list
fossfreedom-ubuntu-rhythmbox-plugins-disco.list.save  playonlinux.list.save
google-chrome.list
???

But since this is debian, not ubuntu, it still leaves one ubuntu-specific source to be removed:
Code:
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 http://security.debian.org/debian-security stretch/updates main
# Line commented out by installer because it failed to verify:
deb-src http://security.debian.org/debian-security 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 http://deb.debian.org/debian/ stretch-updates main
#deb-src http://deb.debian.org/debian/ stretch-updates main

#deb http://ppa.launchpad.net/gns3/ppa/ubuntu xenial main
#deb-src http://ppa.launchpad.net/gns3/ppa/ubuntu xenial main

deb http://httpredir.debian.org/debian stable main contrib
deb-src http://httpredir.debian.org/debian stable main contrib

deb http://httpredir.debian.org/debian buster main
deb http://httpredir.debian.org/debian buster-updates main
deb http://security.debian.org 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: https://wiki.debian.org/DontBreakDebian

...and you don't have to run upgrades/dist-upgrades while we're fixing this. Just issue the commands we ask you to enter.
 
1 members found this post helpful.
Old 08-06-2019, 03:38 AM   #18
joseph_lewis
Member
 
Registered: Aug 2019
Location: Sri Lanka
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 1
Thanks Evo

Nautilus is working fine now... Thank you evo...

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

Code:
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?
 
1 members found this post helpful.
Old 08-06-2019, 03:44 AM   #19
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,009

Rep: Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391
Hi,

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
Code:
systemctl hibernate
Exactly what command are you running? What did you remove and reinstall, and how?

Evo2.

P.S. I highly recommend you read the link, https://wiki.debian.org/DontBreakDebian, posted by ondoho. The Debian wiki has been getting much better over the years.
 
1 members found this post helpful.
Old 08-06-2019, 03:48 AM   #20
joseph_lewis
Member
 
Registered: Aug 2019
Location: Sri Lanka
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 1
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.
 
Old 08-06-2019, 04:09 AM   #21
joseph_lewis
Member
 
Registered: Aug 2019
Location: Sri Lanka
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 1
Hello Evo

Code:
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,

Code:
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?
 
Old 08-06-2019, 04:34 AM   #22
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,533
Blog Entries: 9

Rep: Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393Reputation: 3393
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:
Code:
echo "$PATH"
 
Old 08-06-2019, 04:37 AM   #23
joseph_lewis
Member
 
Registered: Aug 2019
Location: Sri Lanka
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 1
Outputs,

Code:
joseph@joseph:~$ sudo echo "$PATH"
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
Code:
root@joseph:/home/joseph# echo "$PATH"
/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
 
Old 08-06-2019, 04:47 AM   #24
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,009

Rep: Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391
Hi,

strange, path is the same for both. As joseph, run:
Code:
which nethogs
Evo2.
 
Old 08-06-2019, 04:49 AM   #25
joseph_lewis
Member
 
Registered: Aug 2019
Location: Sri Lanka
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 1
Code:
joseph@joseph:~$ which nethogs
joseph@joseph:~$ sudo which nethogs
/usr/sbin/nethogs
without sudo, it didn't gave me any output. So I tried it with "sudo".
 
Old 08-06-2019, 05:00 AM   #26
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,009

Rep: Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391
Hi,

/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?

Evo2.
 
Old 08-06-2019, 05:03 AM   #27
joseph_lewis
Member
 
Registered: Aug 2019
Location: Sri Lanka
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 1
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. Great lesson...
 
Old 08-06-2019, 05:35 AM   #28
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,009

Rep: Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391
Hi,

to understand which file may have been modified please run the following as root.
Code:
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.

Evo2.
 
Old 08-06-2019, 05:39 AM   #29
joseph_lewis
Member
 
Registered: Aug 2019
Location: Sri Lanka
Distribution: Debian
Posts: 32

Original Poster
Rep: Reputation: 1
Hello Evo

Code:
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

/etc/bash_completion.d:
total 4
-rw-r--r-- 1 root root 2384 Aug 31  2016 dkms
 
Old 08-06-2019, 05:50 AM   #30
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,009

Rep: Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391Reputation: 1391
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"?

Evo2.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How To: Remastering Debian Stretch/Buster using Linux-live-debian-050419 into a Live CD/DVD/USB/HDD linus72 Debian 1 10-14-2019 01:25 PM
LXer: How to Upgrade Debian 9 Stretch to Debian 10 Buster LXer Syndicated Linux News 0 07-07-2019 05:54 PM
[SOLVED] Nvidia-Driver broken on Stretch & Buster baumerang Debian 4 06-17-2019 04:51 PM
[SOLVED] Upgraded Stretch->Buster, lost network. How to set up simple DHCP connection? pepperslq Debian 7 02-26-2018 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration