Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Need help deleting the apt scr file please

Ask for help with issues regarding the Installations of the Debian O/S.
Post Reply
Message
Author
Debian_ Disciple
Posts: 14
Joined: 2005-06-25 08:55

Need help deleting the apt scr file please

#1 Post by Debian_ Disciple »

I have been trying to upgrade Sarge, from testing to stable

The apt src folder/area is cluttered with junk files that need to be deleted to make room for the upgrade I need to know if there is a root command that will delete the unnecessary files that are in the apt src area so I can replace them with the lines pasted below to update the source.list from testing to stable.

#Stable Sarge
deb http://http.us.debian.org/debian/ stable main contrib non-free
#Stable (Sarge) Sources
deb-src http://http.us.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free


Please help I been at this for days and don't know what else to do
Dd

User avatar
jobezone
Posts: 214
Joined: 2005-06-12 07:20
Location: Portugal

Re: Need help deleting the apt scr file please

#2 Post by jobezone »

What is "apt src folder/area"?

The sarge line you should have in /etc/apt/sources.list is:
#Stable Sarge
deb http://http.us.debian.org/debian/ stable main contrib non-free
#Stable (Sarge) Sources
deb-src http://http.us.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free

User avatar
dawgie
Posts: 430
Joined: 2004-06-16 21:30
Location: New Hampshire USA

Re: Need help deleting the apt scr file please

#3 Post by dawgie »

Debian_ Disciple wrote:I have been trying to upgrade Sarge, from testing to stable

The apt src folder/area is cluttered with junk files that need to be deleted to make room for the upgrade I need to know if there is a root command that will delete the unnecessary files that are in the apt src area so I can replace them
As root:
Change to the /etc/apt directory and backup your sources.list file.
# cd /etc/apt
# cp sources.list sources.back


As root, open your sources.list file in your text editor and add your sources for sarge.
Or, you can simply overwrite your sources.list file with just the sarge sources by pasting into an xterm:

Code: Select all

 echo "#Stable Sarge
deb http://http.us.debian.org/debian/ stable main contrib non-free
#Stable (Sarge) Sources
deb-src http://http.us.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free
"> sources.list
The you need to do an update and upgrade:
# apt-get update
# apt-get dist-upgrade

After you have upgraded you can cleanup with:
# apt-get clean

If you mess anything up you can copy your backup file.

-Bob

Debian_ Disciple
Posts: 14
Joined: 2005-06-25 08:55

#4 Post by Debian_ Disciple »

Thanks for the replies opened gedit as root then erased the old data and replaced it with the lines that are posted below this paragraph



echo "#Stable Sarge
deb http://http.us.debian.org/debian/ stable main contrib non-free
#Stable (Sarge) Sources
deb-src http://http.us.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free
"> sources.list

After that I did the apt-gets' then opened synaptic manager then received this error message
The following problems were found on your system:


E: Type 'echo' is not known on line 1 in source list /etc/apt/sources.list
E: The list of sources could not be read.
Go to the repository dialog to correct the problem

Thanks for the replies I been at this for days nothing seems to work
Dd

User avatar
dawgie
Posts: 430
Joined: 2004-06-16 21:30
Location: New Hampshire USA

#5 Post by dawgie »

Debian_ Disciple wrote: echo "#Stable Sarge
deb http://http.us.debian.org/debian/ stable main contrib non-free
#Stable (Sarge) Sources
deb-src http://http.us.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free
"> sources.list
As root, open your sources.list file in an editor and remove the parts I marked in red
After you save your changes, you need to do an update. Make sure that you have an internet connection running. Start an xterm, and su to root. Then do the command:

# apt-get update

This command will create a new list of packages that are available in the addresses in your sources.list file. If you get any errors from this command, please let us know.

-Bob

Debian_ Disciple
Posts: 14
Joined: 2005-06-25 08:55

#6 Post by Debian_ Disciple »

Thanks for the replies I opened the text editor ( gedit) with the su command then saved the code that is posted below this paragraph in the file that says source.list


#Stable Sarge
deb http://http.us.debian.org/debian/ stable main contrib non-free
#Stable (Sarge) Sources
deb-src http://http.us.debian.org/debian/ stable main contrib non-free
#Security Updates Stable
deb http://security.debian.org/ stable/updates main contrib non-free


After that, I clicked on the synaptic manager, then highlighted repositories everything was in place. I didn't receive any error messages with the code that is posted above."

So I exited the terminal and opened up synaptic manager, again then clicked on the reload tab then choose smart update the system proceeded to download the updates, after that I clicked mark all upgrades, Now here's the part I don't get. For some reason or another the apply tab was grayed out, so I could not apply the updates.

I tried dist-update as well as a few other commands then went back to update the system but still no go the apply tab was still grayed out. I'm most certain that the problem is minor. I'm just glad that everything is in place. Now all I need to do is find out how to get the apply tab to apply the upgrade then I'll be set.
dawgie Start an xterm, and su to root
I don't know what that means maybe that is the reason why apt-get update didn't respond then bought me back to my user name with a # in front it.

Thanks for the replies this is really helping me out allot I'm almost there Lol
Dd

Debian_ Disciple
Posts: 14
Joined: 2005-06-25 08:55

#7 Post by Debian_ Disciple »

I tried everything , don't know what else do

The updates are downloading however I'm not able to apply them because the apply tab is grayed out I would assume that there would be a bunch of new updates seeing how I just upgraded from testing to stable I'm more worried about the security updates then the rest

Any suggestions on what to do
Dd

durvish1
Posts: 9
Joined: 2005-05-09 15:16

#8 Post by durvish1 »

you need to start a terminal session then type su (for superuser ) at the prompt enter your root password then at the next prompt type

Code: Select all

apt-get update
when that is done at the next prompt type

Code: Select all

apt-get dist-upgrade

Debian_ Disciple
Posts: 14
Joined: 2005-06-25 08:55

#9 Post by Debian_ Disciple »

username@linux:~$ su
Password:
linux:/home/username# apt-get update
Hit http://http.us.debian.org stable/main Packages
Hit http://http.us.debian.org stable/main Release
Hit http://http.us.debian.org stable/contrib Packages
Hit http://http.us.debian.org stable/contrib Release
Hit http://http.us.debian.org stable/non-free Packages
Hit http://http.us.debian.org stable/non-free Release
Hit http://http.us.debian.org stable/main Sources
Hit http://http.us.debian.org stable/main Release
Hit http://http.us.debian.org stable/contrib Sources
Hit http://http.us.debian.org stable/contrib Release
Hit http://security.debian.org stable/updates/main Packages
Hit http://security.debian.org stable/updates/main Release
Hit http://security.debian.org stable/updates/contrib Packages
Hit http://security.debian.org stable/updates/contrib Release
Hit http://security.debian.org stable/updates/non-free Packages
Hit http://security.debian.org stable/updates/non-free Release
Hit http://http.us.debian.org stable/non-free Sources
Hit http://http.us.debian.org stable/non-free Release
Reading Package Lists... Done
linux:/home/username# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
linux:/home/username#

Thanks for the replies I already tried that the apply tab is still grayed out

I open the synaptic manager then hit the reload tab, smart upgrade and then a message informed me that 18 of 18 .. um packages were downloading, after everything finished downloading I hit the tab that says mark all upgrades but for some reason or another the apply tab is grayed out and will not allow me to apply the upgrades. I get the error message that is posted above after doing an apt-get update and then a apt-get upgrade.

I don't know what else to do
Dd

Debian_ Disciple
Posts: 14
Joined: 2005-06-25 08:55

#10 Post by Debian_ Disciple »

Dose anyone know how to get these updates to apply ?
Dd

durvish1
Posts: 9
Joined: 2005-05-09 15:16

#11 Post by durvish1 »

I think the problem is that your going backward. If I understand your first post correctly you are trying to UPGRADE from testing to stable? Testing is the newer unstable version, that's why it's called testing. Stable is the old testing version that has had all the bugs worked. So if you had testing already loaded there won't be any upgrades from the stable tree.

Debian_ Disciple
Posts: 14
Joined: 2005-06-25 08:55

#12 Post by Debian_ Disciple »

I want to upgrade to the newest version the version with the latest security updates, I'm guessing that the best version to choose for a home computer would be Stable I also noticed that Debian has been having problems with updates , I purchased All 14 installation CD-S directly from Debian All 14 CD-S are marked with the Debian logo none of the Install CD-S that were used to install Debian are boot legged, they're the real deal.

just wish I could get these updates to apply Stable appears to be loaded just can't get the updates to apply the changes








http://lists.debian.org/debian-devel-an ... 00003.html
Dd

durvish1
Posts: 9
Joined: 2005-05-09 15:16

#13 Post by durvish1 »

Ok let's try again
when you update your sources synaptic will say updating and now downloading ---- this means it is updating the SOURCES List
linux:/home/username# apt-get dist-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
Calculating Upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
linux:/home/username#
That means that after updating your sources synaptic did not find any updates and/or upgrades for your system. Your system is already fully updated.[/quote]

Debian_ Disciple
Posts: 14
Joined: 2005-06-25 08:55

#14 Post by Debian_ Disciple »

Wow thanks for the info

I just find it unusual that synaptic manager didn't find any new updates after the system was upgraded that's strange... Not even one security update one would assume there would be at least one , maybe two new updates after Sarge was Finally made stable. I think it's a Bug
Dd

durvish1
Posts: 9
Joined: 2005-05-09 15:16

#15 Post by durvish1 »

But you didn't upgrade. If you where running testing and you changed to stable then you downgraded. Give it a few weeks and I'm sure you'll get some security updates.

Post Reply