LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   apt-get and cnr client (https://www.linuxquestions.org/questions/linux-software-2/apt-get-and-cnr-client-771582/)

paul62 11-25-2009 07:27 PM

apt-get and cnr client
 
I am trying to use apt-get to reinstall my cnr client in linsprie oem,
Thsi is the output that I am getting from apt-get update
pc1:~# apt-get update
Err ftp://non-us.debian.org sarge/non-US/main Packages
Could not resolve 'non-us.debian.org'
Get:1 ftp://ftp.us.debian.org sarge/main Packages
Err ftp://ftp.us.debian.org sarge/main Packages
Unable to fetch file, server said 'Failed to open file. ' [IP: 204.152.191.39 21]
Get:2 ftp://ftp.us.debian.org sarge/main Release
Err ftp://non-us.debian.org sarge/non-US/main Release
Could not resolve 'non-us.debian.org'
Ign ftp://ftp.us.debian.org sarge/main Release
Get:3 ftp://ftp.us.debian.org sarge/contrib Packages
Err ftp://ftp.us.debian.org sarge/contrib Packages
Unable to fetch file, server said 'Failed to open file. ' [IP: 204.152.191.39 21]
Err ftp://non-us.debian.org sarge/non-US/contrib Packages
Could not resolve 'non-us.debian.org'
Get:4 ftp://ftp.us.debian.org sarge/contrib Release
Ign ftp://ftp.us.debian.org sarge/contrib Release
Get:5 ftp://ftp.us.debian.org sarge/non-free Packages
Err ftp://non-us.debian.org sarge/non-US/contrib Release
Could not resolve 'non-us.debian.org'
Err ftp://ftp.us.debian.org sarge/non-free Packages
Unable to fetch file, server said 'Failed to open file. ' [IP: 204.152.191.39 21]
Get:6 ftp://ftp.us.debian.org sarge/non-free Release
Ign ftp://ftp.us.debian.org sarge/non-free Release
Err ftp://non-us.debian.org sarge/non-US/non-free Packages
Could not resolve 'non-us.debian.org'
Err ftp://non-us.debian.org sarge/non-US/non-free Release
Could not resolve 'non-us.debian.org'
Failed to fetch ftp://ftp.us.debian.org/debian/dists...-i386/Packages Unable to fetch file, server said 'Failed to open file. ' [IP: 204.152.191.39 21]
Failed to fetch ftp://ftp.us.debian.org/debian/dists...-i386/Packages Unable to fetch file, server said 'Failed to open file. ' [IP: 204.152.191.39 21]
Failed to fetch ftp://ftp.us.debian.org/debian/dists...-i386/Packages Unable to fetch file, server said 'Failed to open file. ' [IP: 204.152.191.39 21]
Failed to fetch ftp://non-us.debian.org/debian-non-U...-i386/Packages Could not resolve 'non-us.debian.org'
Failed to fetch ftp://non-us.debian.org/debian-non-U...y-i386/Release Could not resolve 'non-us.debian.org'
Failed to fetch ftp://non-us.debian.org/debian-non-U...-i386/Packages Could not resolve 'non-us.debian.org'
Failed to fetch ftp://non-us.debian.org/debian-non-U...y-i386/Release Could not resolve 'non-us.debian.org'
Failed to fetch ftp://non-us.debian.org/debian-non-U...-i386/Packages Could not resolve 'non-us.debian.org'
Failed to fetch ftp://non-us.debian.org/debian-non-U...y-i386/Release Could not resolve 'non-us.debian.org'
Reading Package Lists... Done
Building Dependency Tree... Done
W: Couldn't stat source package list ftp://ftp.us.debian.org sarge/main Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_sarge_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list ftp://ftp.us.debian.org sarge/contrib Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_sarge_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list ftp://ftp.us.debian.org sarge/non-free Packages (/var/lib/apt/lists/ftp.us.debian.org_debian_dists_sarge_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list ftp://non-us.debian.org sarge/non-US/main Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_sarge_non-US_main_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list ftp://non-us.debian.org sarge/non-US/contrib Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_sarge_non-US_contrib_binary-i386_Packages) - stat (2 No such file or directory)
W: Couldn't stat source package list ftp://non-us.debian.org sarge/non-US/non-free Packages (/var/lib/apt/lists/non-us.debian.org_debian-non-US_dists_sarge_non-US_non-free_binary-i386_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems
E: Some index files failed to download, they have been ignored, or old ones used instead.
pc1:~#
Here is what my sources.list shows
# If you uncomment the lines below you can use apt-get to install packages
# from the Debian distribution. However, PLEASE NOTE that you may pull in
# packages which are incompatible with the LindowsOS distribution, and will
# cause the CNR installer to stop working
deb ftp://ftp.us.debian.org/debian sarge main contrib non-free
deb ftp://non-us.debian.org/debian-non-US sarge/non-US main contrib non-free
I am trying to update this so I can reinstall my cnr client which is not working.

evo2 11-25-2009 08:45 PM

Talk about ancient. The sarge repositories were moved to
http://archive.debian.org.

You will need to edit yout /etc/apt/sources.list. Ie replace ftp.us.debian.org with archive.debian.org.

Evo2.

paul62 11-26-2009 09:46 AM

Here is my output from console
pc1:~# apt-get update
E: Type 'http://archive.debian.org' is not known in on line 5 in source list /etc/apt/sources.li

pc1:~# E: Type 'http://archive.debian.org' is not known in on line 5 in source list /etc/apt/sources.list

Here is what my sources.list looks like
# If you uncomment the lines below you can use apt-get to install packages
# from the Debian distribution. However, PLEASE NOTE that you may pull in
# packages which are incompatible with the LindowsOS distribution, and will
# cause the CNR installer to stop working
http://archive.debian.org

evo2 11-26-2009 09:43 PM

Seems spoon feeding may be needed. Please put the follwing line in you sources.list and delete/comment any lines causing errors.

Code:

deb http://archive.debian.org/debian sarge main contrib non-free
I'll let you work out what to do about the non-us repos.

Cheers,

Evo2.

paul62 11-28-2009 06:06 PM

How could I use apt-get to install the cnr client?

Elv13 11-28-2009 07:05 PM

Get the .deb and double click on it.

evo2 11-28-2009 07:51 PM

Quote:

Originally Posted by paul62 (Post 3772760)
How could I use apt-get to install the cnr client?

Did you edit your sources.list as I suggested? If so then

Code:

apt-get update
apt-get install name-of-cnr-client-package

Where "name-of-cnr-client-package" is the name of the actual package.

Please read about how to use apt-get at the following URL.

http://www.debian.org/doc/manuals/apt-howto/

Evo2.

paul62 11-29-2009 08:59 AM

I did the update and this is the output that I am getting

pc1:~# apt-get install cnr-client
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package cnr-client
pc1:~#

paul62 11-29-2009 09:40 AM

Wehn I try to install different packages such as cnrclient I am getting the message that I ahve unmet dependenciesand than it says try runnign apt-get -f install whith no package name and this is the output that I am getting.

evo2 11-29-2009 07:13 PM

Quote:

Originally Posted by paul62 (Post 3773251)
I did the update and this is the output that I am getting

pc1:~# apt-get install cnr-client
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package cnr-client
pc1:~#

Are you sure that is the name of the package? What are the outputs of the following two commands?

Code:

dpkg -l cnr-client
apt-cache show cnr-client

Evo2.

evo2 11-29-2009 07:14 PM

Quote:

Originally Posted by paul62 (Post 3773298)
Wehn I try to install different packages such as cnrclient I am getting the message that I ahve unmet dependenciesand than it says try runnign apt-get -f install whith no package name and this is the output that I am getting.

Sorry, don't understand that run-on sentence. Did you run 'apt-get -f install' as suggested?

Evo2.

paul62 11-29-2009 07:34 PM

The name of the client was wrong this is the output I am now getting
pc1:~# apt-get install cnr-client
Reading Package Lists... Done
Building Dependency Tree... Done
Debian Configuration

evo2 11-29-2009 07:37 PM

Quote:

Originally Posted by paul62 (Post 3773775)
The name of the client was wrong this is the output I am now getting
pc1:~# apt-get install cnr-client
Reading Package Lists... Done
Building Dependency Tree... Done
Debian Configurationpc1:~# apt-get install cnr-client
Reading Package Lists... Done
Building Dependency Tree... Done
Debian Configuration

Ok, so to reinstall a package you need to use the --reinstall option, like this:

Code:

apt-get install --reinstall cnr-client
Evo2.

paul62 11-29-2009 07:39 PM

I am still having problems the name of the program was wrong I have the right name. This is the output that I am getting.
pc1:~# apt-get install cnrclient
Reading Package Lists... Done
Building Dependency Tree... Done
caner Configuration

paul62 11-29-2009 07:43 PM

pc1:~# apt-get install cnrclient
Reading Package Lists... Done
Building Dependency Tree... Done
Debian Configuration
─────────────────────────────────────────────────────────────────────────────────



┌───────────────────────────[!!] Configuring Libc6─────────────────────────────┐
│ Running services and programs that are using NSS need to be restarted, │
│ otherwise they might not be able to do lookup or authentication any more. │
│ The installation process is able to restart some services (such as ssh or │
│ telnetd), but other programs cannot be restarted automatically. One such │
│ program that needs manual stopping and restart after the glibc upgrade by │
│ yourself is xdm - because automatic restart might disconnect your active │
│ X11 sessions. │
│ │
│ This script detected the following installed services which must be │
│ stopped before the upgrade: kdm │
│ │
│ If you want to interrupt the upgrade now and continue later, please │
│ answer No to the question below. │
│ │
│ Do you want to upgrade glibc now? │
│ │
│ │
├──────────────────────────────────────────────────────────────────────────────┤
│ < Yes > < No > │
└──────────────────────────────────────────────────────────────────────────────┘





readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
readlink: invalid option -- e
Try `readlink --help' for more information.
WARNING: POSIX threads library NPTL requires kernel version
2.6.8 or later. If you use a kernel 2.4, please upgrade it
before installing glibc.

The installation of a 2.6 kernel _could_ ask you to install a new libc
first, this is NOT a bug, and should *NOT* be reported. In that case,
please add etch sources to your /etc/apt/sources.list and run:
apt-get install -t etch linux-image-2.6
Then reboot into this new kernel, and proceed with your upgrade
dpkg: error processing /var/cache/apt/archives/libc6_2.7-18_i386.deb (--unpack):
subprocess pre-installation script returned error exit status 1
Errors were encountered while processing:
/var/cache/apt/archives/libc6_2.7-18_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
This is the last output that Iam getting
pc1:~#


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