Announcement

Collapse
No announcement yet.

BASH is upset about something

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    BASH is upset about something

    Hi,

    Have just installed Kubuntu but I don't have authorization to DL from KPackaggeKit and CLI is replying with unexpected objections to commands. I'm sure this behaviour is related related:

    nnjond@nnjond-den:~$ /etc/apt/sources.list
    bash: /etc/apt/sources.list: Permission denied
    nnjond@nnjond-den:~$ sudo su
    [sudo] password for nnjond:
    root@nnjond-den:/home/nnjond# /etc/apt/sources.list
    bash: /etc/apt/sources.list: Permission denied
    root@nnjond-den:/home/nnjond#



    And
    root@nnjond-den:/home/nnjond# gksu gedit /boot/grub/grub.cfg
    No protocol specified

    (gksu:1571): Gtk-WARNING **: cannot open display: :0.0
    root@nnjond-den:/home/nnjond# gksudo gedit /etc/default.grub
    No protocol specified

    (gksudo:1572): Gtk-WARNING **: cannot open display: :0.0
    root@nnjond-den:/home/nnjond#

    #2
    Re: BASH is upset about something

    First, exit from the root login before you break something, please.

    Second, what do you wish to do? If you want to look at the /etc/sources.list file (which is merely going to tell you to check under /etc/sources.list.d/), then

    Code:
    ~$ cat /etc/sources.list
    If your intention were to edit that file, then, using vi, vim, or a terminal package like nano which would need to be installed first, you could do

    Code:
    ~$ sudo nano /etc/sources.list
    Hope this helps.

    Edit: and if your need is to edit system files with a GUI editor, the KDE analogue to gedit is kate. There are 2 equally usable ways to launch kate in super-user aka root mode:

    From the desktop: Alt-F2 "kdesudo kate" with no quote marks

    From the terminal:
    Code:
    ~$ kdesudo kate
    The thing you really don't want to do is, from the terminal:
    Code:
    ~$ sudo kate
    that will break your user login.

    Comment


      #3
      Re: BASH is upset about something

      Thanks for your interest.

      Primarily I want to get on and dl the apps I use on a regular basis such as the media player vlc. Also it seems there is a simple procedure to dl and install KDE 4.5.1

      http://kubuntuforums.net/forums/index.php?topic=3113855

      - but it requires apt-get to work, and it didn't yesterday.

      Comment


        #4
        Re: BASH is upset about something

        Hm, it is surprising that BASH didn't whallop you one

        Check snowhog's dibl's post again, especially the commands. If necessary copy and paste, but your attempts show that you tried something else (not sure what...).

        Be careful with what you type and BASH will be kind to you (as will apt-get)
        Once your problem is solved please mark the topic of the first post as SOLVED so others know and can benefit from your experience! / FAQ

        Comment


          #5
          Re: BASH is upset about something

          Originally posted by nnjond
          Thanks for your interest.

          Primarily I want to get on and dl the apps I use on a regular basis such as the media player vlc. Also it seems there is a simple procedure to dl and install KDE 4.5.1
          Good. May I recommend you make a quick review of #11 in the FAQs in my signature, and the links that are provided there? There is also a FAQ on the topic of media players and codecs (you'll need to add the Medibuntu repo ....).

          Comment


            #6
            Re: BASH is upset about something

            Thanks Dibl, you've been a great help

            Comment

            Working...
            X