LinuxQuestions.org
Visit Jeremy's Blog.
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 05-08-2013, 01:08 PM   #1
kcredden
Member
 
Registered: Jul 2006
Posts: 35

Rep: Reputation: 0
Synaptic running problem in Debian 7/Wheezy


Ok folks: Ran into another problem.

Installed Synaptic on D7, click on it to run, type in the password, then

nothing.

I tried running it though the command line with:

sudo synaptic

I get:

Code:
root@equuleus:/home/kcredden# synaptic
No protocol specified

(synaptic:7088): Gtk-WARNING **: cannot open display: :0
I seemed to remember there is a command to run GUI programs from the command line. Like gksudo or something such? I wanted to see if there was any error messages I can relay to you.

I had some problems installing synaptic this morn, and it's solved here encase that helps.:

https://www.linuxquestions.org/quest...22#post4947322

This server's stats:

kcredden@equuleus:~$ cat /proc/version
Linux version 3.2.0-4-686-pae (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-15) ) #1 SMP Debian 3.2.41-2

kcredden@equuleus:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.0 (wheezy)
Release: 7.0
Codename: wheezy
kcredden@equuleus:~$

--
This is also kde 4.8.4 (4.8.4)
 
Old 05-08-2013, 01:45 PM   #2
linuxgeek82
LQ Newbie
 
Registered: Feb 2013
Distribution: Debian, Kali 1.0.3
Posts: 22

Rep: Reputation: Disabled
I had a similar issue with kde after installing synaptic,
try rebooting the computer and see if that works, i think package manager is in k menu>applications>system
 
Old 05-08-2013, 02:06 PM   #3
cynwulf
Senior Member
 
Registered: Apr 2005
Location: Walsall, England
Posts: 1,977
Blog Entries: 5

Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
What happens if you do
Code:
$ synaptic-pkexec
(as your normal user, not root)
 
Old 05-08-2013, 02:57 PM   #4
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
You cannot normally run gui programs as root (there are good reasons for this). Yes, gksu or gksudo can be used to allow you to run gui programs with root. Copying the .Xauthority file from your home directory to the /root directory is somewhat reckless. So gksu/gksudo is the way to go. Some gui programs will prompt you for authorisation obviating gksu/gksudo.
jdk
 
Old 05-08-2013, 07:29 PM   #5
kcredden
Member
 
Registered: Jul 2006
Posts: 35

Original Poster
Rep: Reputation: 0
I tried rebooting, same problem.

Tried:

Quote:
Originally Posted by caravel View Post
What happens if you do
Code:
$ synaptic-pkexec
(as your normal user, not root)
It said command not found as normal user. But SU gave me:

Code:
root@equuleus:/home/kcredden# synaptic -pkexec
No protocol specified

(synaptic:3187): Gtk-WARNING **: cannot open display: :0
root@equuleus:/home/kcredden# ^C
Is there any other things I can do, to show you errors it's giving? As I said it does absolutely nothing when I run this.

--
Also let me run this by anyone. Between v4 to v6 of Debian, that text installer was a nightmare. If you didn't allow it to download 600 - 1g of updates every-time it installed - even if you had all 8 DVDs, it would give me all sorts of bizarre problems. No GUI installed at times, GRUB wouldn't work, or even worse - weird internal problems. This almost sounds like the same thing even though this time it didn't download anything.
 
Old 05-08-2013, 10:34 PM   #6
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
have you setup sudo?
If so
Quote:
sudo synaptic -pkexec
If command not found maybe synaptic not installed.
Is this the gnome Desktop?
Go to Activities>>Applications & scroll to synaptic see if it works using the icon

Last edited by EDDY1; 05-08-2013 at 10:50 PM.
 
Old 05-09-2013, 01:42 AM   #7
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,623

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
I think I would like to see you simply try going to your terminal and;
Code:
su
and, assuming you get the root (#) prompt;
Code:
apt-get update
if that does not work post ALL the output;

If it works run
Code:
apt-get upgrade.
You appear to have synaptic installed. You should have gotten "command not found" when trying to open it in terminal as root if it were not.

Therefore if the above command gives you good results run;
Code:
apt-get clean
and then
Code:
apt-get install --reinstall synaptic
Then, once again;
Code:
synaptic
 
Old 05-09-2013, 03:34 AM   #8
jim_p
Member
 
Registered: Aug 2009
Distribution: Debian testing
Posts: 551

Rep: Reputation: 127Reputation: 127
I had a similar issue trying to run gui apps (= not terminal ones) as root under kde, after using su. It seems kde is somewhat picky on that, so I installed sux (sux - wrapper around su which will transfer your X credentials) and used it on that occasion.
 
Old 05-09-2013, 04:05 AM   #9
cynwulf
Senior Member
 
Registered: Apr 2005
Location: Walsall, England
Posts: 1,977
Blog Entries: 5

Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
Quote:
Originally Posted by kcredden View Post
I tried rebooting, same problem.

Tried:



It said command not found as normal user. But SU gave me:

Code:
root@equuleus:/home/kcredden# synaptic -pkexec
No protocol specified

(synaptic:3187): Gtk-WARNING **: cannot open display: :0
root@equuleus:/home/kcredden# ^C
Is there any other things I can do, to show you errors it's giving? As I said it does absolutely nothing when I run this.
There is no space between the c and the hyphen. synaptic-pkexec is a binary

Code:
$ synaptic-pkexec
This should open a graphical login prompt or throw an error.

You can also try
Code:
$ gksu synaptic
but that defeats the object here as the gnome menus are set up to use the pkexec binary.
 
Old 05-09-2013, 10:17 PM   #10
kcredden
Member
 
Registered: Jul 2006
Posts: 35

Original Poster
Rep: Reputation: 0
Thank you all for your help and advice.

I wish to report either D7 is still not fully debugged, or else I've got a bad install. It did say once when it tried to install from the text installer it had problems reading a file, but the graphic installer didn't report a problem. I've had problems with the text installer from v4 to v6 causing weird and bizzare problems.

I'm thinking that the installation is damaged in some tiny way that's causing problems. I'll reinstall it, try this again and see if that's the problem.

So far, I'm getting:

sudo - is not installed
tried to do apt0get reinstall synaptic, got: Invalid operation reinstall

It wouldn't restart the network, unless I rebooted the entire machine.

If another reinstall doesn't work I'll just have to wait till Debian 7.01 comes out, and try that. I'll let you know which ever works out.
 
Old 05-10-2013, 10:24 AM   #11
cynwulf
Senior Member
 
Registered: Apr 2005
Location: Walsall, England
Posts: 1,977
Blog Entries: 5

Rep: Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027Reputation: 1027
Quote:
Originally Posted by kcredden View Post
Thank you all for your help and advice.

I wish to report either D7 is still not fully debugged, or else I've got a bad install. It did say once when it tried to install from the text installer it had problems reading a file, but the graphic installer didn't report a problem. I've had problems with the text installer from v4 to v6 causing weird and bizzare problems.
I've never had a single problem with the ncurses debian installer, so I can only suggest that perhaps it was a bad burn? You should check the md5sum of the downloaded .iso and also when it's been burned to disc (at a low speed).

Quote:
Originally Posted by kcredden View Post
So far, I'm getting:

sudo - is not installed
tried to do apt0get reinstall synaptic, got: Invalid operation reinstall
Well perhaps sudo is not installed? Did you check?

reinstall is an invalid operation, so check the man page for apt-get, a valid option would be
Code:
# apt-get install --reinstall synaptic
Quote:
Originally Posted by kcredden View Post
It wouldn't restart the network, unless I rebooted the entire machine.
You'd need to go into more detail. If you're using a wired connection with the networking daemon, it's usually as simple as
Code:
# /etc/init.d/networking restart
Or you can use ifup/down.

Quote:
Originally Posted by kcredden View Post
If another reinstall doesn't work I'll just have to wait till Debian 7.01 comes out, and try that. I'll let you know which ever works out.
I doubt multiple reinstalls will help. I have experienced none of the problems you describe.
 
Old 05-10-2013, 08:08 PM   #12
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,623

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
sudo is not installed by default unless you do not create a root password. With a root password sudo is not needed in the least.

Use the command "su" and give your root password to get the root prompt (#).

I think that caravel has it right. I have not used a new Wheezy install image. I did do an install with the Debian Live image for Wheezy. The Live Session was definitely screwy at that time. Rebooting and using the Install Debian option gave me the text installer.

That not only worked but was so fast I thought the install must have failed. Did not. Works great.

This install of Wheezy was from a netinstall image a long time ago. Could be that it is from the upgrade from Squeeze (when it was testing) to Wheezy when it became testing but I am pretty sure I reinstalled it once since then.
 
Old 05-10-2013, 11:41 PM   #13
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by widget View Post
sudo is not installed by default unless you do not create a root password. With a root password sudo is not needed in the least.
If memory serves, sudo is installed by default but you have to hand-edit the sudoers file to add your username (or anyone else's) you want to give sudo ability to.
jdk
 
Old 05-11-2013, 12:15 AM   #14
Randicus Draco Albus
Senior Member
 
Registered: May 2011
Location: Hiding somewhere on planet Earth.
Distribution: No distribution. OpenBSD operating system
Posts: 1,672
Blog Entries: 8

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
In other words, it is installed but not enabled.
It is installed for those who need to use it for its intended purpose (and are therefore free to enable it), but since most people do not need it, it is not enabled by default.
 
Old 05-11-2013, 01:40 AM   #15
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
That sounds about right, Randy.
 
  


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
[SOLVED] Synaptic install problem on D7/Wheezy kcredden Debian 11 09-03-2013 11:42 AM
LXer: Running ActiveCollab 3 On Nginx (LEMP) On Debian Wheezy/Ubuntu 12.10 LXer Syndicated Linux News 0 04-14-2013 12:42 PM
LXer: Running Contao 3.x On Nginx (LEMP) On Debian Wheezy/Ubuntu 12.10 LXer Syndicated Linux News 0 02-03-2013 09:12 AM
LXer: File under 'disturbing': Debian Wheezy doesn't ship with the Synaptic Package Manager LXer Syndicated Linux News 1 08-22-2012 08:03 AM

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

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

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