<SOLVED> How to get update manager to read sources.list

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
daisyb

<SOLVED> How to get update manager to read sources.list

Post by daisyb »

I followed the Farewell Medibuntu blog [url]http://blog.linuxmint.com/?p=2469[/url]to update the sources and made a mistake when I omitted highlighting the "g" in "gedit" when replacing with "kate" to read 'gksu kate/etc/apt/sources.list'. I corrected the mistake in the file
and saved, but the update manager still cannot read the file anymore. Keep getting message "cannot read gksug..." The Update Manager on taskbar is showing a red cross and would not update.

Can someone please tell me how and what should I do to fix that up so it updates again without having to re-install?

Thanks very much in advance
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Re: How to get update manager to read sources.list

Post by xenopeek »

Not following what you mean you did, so please instead open Konsole and run the following command and share the output here (see Konsole's Edit menu for copying text):

Code: Select all

inxi -Sr
Image
nomko

Re: How to get update manager to read sources.list

Post by nomko »

but the update manager still cannot read the file anymore. Keep getting message "cannot read gksug..
I think he placed the gksu kate ***** in the source.list file. That is what I understand from this story..
daisyb

Re: How to get update manager to read sources.list

Post by daisyb »

sorry I can't get to that machine right now, but what I did was left the "g" after gksu, making it "gksug". I did go into the file and removed the "g", but update manager still can't read. The list file is showing the correct text now - ie "#gksu kate///etc"

I will post the output as soon as I can. Thanks very much
User avatar
xenopeek
Level 25
Level 25
Posts: 29615
Joined: Wed Jul 06, 2011 3:58 am

Re: How to get update manager to read sources.list

Post by xenopeek »

daisyb wrote:The list file is showing the correct text now - ie "#gksu kate///etc"
You're mixing a lot of things up I think. That is not something to place in some file, that was a command to run :( As per the blog post you linked to, for all editions except KDE you would run the command "gksu gedit /etc/apt/sources.list". NOT place it in some file; that is the command to edit a file... For KDE you'd replace the command with "kdesu kate /etc/apt/sources.list", though probably you have to edit another file. Hence please share the output of the command "inxi -Sr" so we can see which file you should edit.
Image
daisyb

Re: How to get update manager to read sources.list

Post by daisyb »

I did do that in Konsole, but overlooked the "g" when substituting gedit with "kate". Being a newbie with very limited knowledge of codes, I thought if I correct the mistake in the file Konsole edited would rectify problem :(

Following is the output you requested:

Code: Select all

~ $ inxi -Sr
System:    Host: Mint Kernel: 3.2.0-54-generic x86_64 (64 bit) 
Desktop: KDE 4.8.5 Distro: Linux Mint 13 Maya
Repos:     Active apt sources in file: /etc/apt/sources.list
            gksu# /etc/apt/sources.list
            deb mirror://mirrors.ubuntu.com/mirrors.txt precise main 
restricted universe multiverse
            deb-src mirror://mirrors.ubuntu.com/mirrors.txt precise main 
restricted universe multiverse
            deb mirror://mirrors.ubuntu.com/mirrors.txt precise-updates 
main restricted universe multiverse
            deb-src mirror://mirrors.ubuntu.com/mirrors.txt 
precise-updates main restricted universe multiverse
            deb mirror://mirrors.ubuntu.com/mirrors.txt precise-security 
main restricted universe multiverse
            deb-src mirror://mirrors.ubuntu.com/mirrors.txt 
precise-security main restricted universe multiverse
            deb http://mirrors.ucr.ac.cr/medibuntu/ precise free non-free
            deb-src http://mirrors.ucr.ac.cr/medibuntu/ precise free 
non-free
            Active apt sources in file: 
/etc/apt/sources.list.d/medibuntu.list
            deb http://nc.packages.medibuntu.org/ precise free non-free
            Active apt sources in file: /etc/apt/sources.list.d/mint.list
            deb http://mirror.internode.on.net/pub/linuxmint-packages/ 
maya main upstream import backport romeo
            Active apt sources in file: /etc/apt/sources.list.d/ubuntu.list
            deb http://archive.ubuntu.com/ubuntu/ precise main 
restricted universe multiverse
            deb http://archive.ubuntu.com/ubuntu/ precise-updates main 
restricted universe multiverse
            deb http://security.ubuntu.com/ubuntu/ precise-security main 
restricted universe multiverse
            deb http://archive.canonical.com/ubuntu/ precise partner
~ $
Thanks so much for the quick assistance. Much appreciated
nomko

Re: How to get update manager to read sources.list

Post by nomko »

Repos: Active apt sources in file: /etc/apt/sources.list
gksu# /etc/apt/sources.list
Remove the line starting with gksu#.
daisyb

Re: How to get update manager to read sources.list

Post by daisyb »

that fixed the problem. Thankyou soooo much!!

Not sure how I can mark this topic as SOLVED
nomko

Re: How to get update manager to read sources.list

Post by nomko »

daisyb wrote:that fixed the problem. Thankyou soooo much!!
Your welcome! Glad that your problem has been fixed!
daisyb wrote:Not sure how I can mark this topic as SOLVED
Just edit the topic title of your first post as you already did.
Locked

Return to “Software & Applications”