xboxscene.org forums

Author Topic: Always Having Trouble Installing Via Apt-get  (Read 279 times)

run088

  • Archived User
  • Hero Member
  • *
  • Posts: 505
Always Having Trouble Installing Via Apt-get
« on: July 04, 2010, 12:11:00 PM »

When you run an apt-get update what happens? Do you get errors? Can you not connect to any of the repos? Find out which ones cant connect and comment out with # then apt-get update again and see if that sorts it. It is usually a problem with connecting with the listed repos. Not to mention if your going to use repos for xebian you might want to try "sarge" repos. Anything etch or newer will break your install unless modified. Some stuff will install from etch other things in etch will crash your system
Logged

juliushibert

  • Archived User
  • Newbie
  • *
  • Posts: 2
Always Having Trouble Installing Via Apt-get
« Reply #1 on: July 04, 2010, 05:23:00 PM »

CODE
box:/etc/apt# apt-get install samba
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded:
  samba
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
132 not fully installed or removed.
Need to get 0B/2556kB of archives.
After unpacking 53.2kB disk space will be freed.
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 36630 files and directories currently installed.)
Preparing to replace samba 3.0.14a-3 (using .../samba_3.0.14a-3sarge11_i386.deb) ...
Unpacking replacement samba ...
/var/lib/dpkg/info/samba.postrm: line 22: update-inetd: command not found
dpkg: warning - old post-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/postrm: line 22: update-inetd: command not found
dpkg: error processing /var/cache/apt/archives/samba_3.0.14a-3sarge11_i386.deb (--unpack):
 subprocess new post-removal script returned error exit status 127
/var/lib/dpkg/tmp.ci/postrm: line 22: update-inetd: command not found
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/samba_3.0.14a-3sarge11_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)


This samba error seems to be a sticking point though now as installing any other apt packages like apache or swat will return some sort of similar samba error;

CODE
box:/etc/apt# apt-get install apache
Reading Package Lists... Done
Building Dependency Tree... Done
apache is already the newest version.
The following extra packages will be installed:
  samba
The following packages will be upgraded:
  samba
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
132 not fully installed or removed.
Need to get 0B/2556kB of archives.
After unpacking 53.2kB disk space will be freed.
Do you want to continue? [Y/n] y
Reading changelogs... Done
Preconfiguring packages ...
(Reading database ... 36630 files and directories currently installed.)
Preparing to replace samba 3.0.14a-3 (using .../samba_3.0.14a-3sarge11_i386.deb) ...
Unpacking replacement samba ...
/var/lib/dpkg/info/samba.postrm: line 22: update-inetd: command not found
dpkg: warning - old post-removal script returned error exit status 127
dpkg - trying script from the new package instead ...
/var/lib/dpkg/tmp.ci/postrm: line 22: update-inetd: command not found
dpkg: error processing /var/cache/apt/archives/samba_3.0.14a-3sarge11_i386.deb (--unpack):
 subprocess new post-removal script returned error exit status 127
/var/lib/dpkg/tmp.ci/postrm: line 22: update-inetd: command not found
dpkg: error while cleaning up:
 subprocess post-removal script returned error exit status 127
Errors were encountered while processing:
 /var/cache/apt/archives/samba_3.0.14a-3sarge11_i386.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
box:/etc/apt#

Logged

juliushibert

  • Archived User
  • Newbie
  • *
  • Posts: 2
Always Having Trouble Installing Via Apt-get
« Reply #2 on: July 05, 2010, 11:51:00 AM »

CODE
Use these repos for sarge

deb http://archive.debian.org/debian sarge main contrib non-free

deb http://archive.debian.org/debian-non-US oldstable/non-US main contrib non-free
deb-src http://archive.debian.org/debian-non-US oldstable/non-US main contrib non-free

deb http://archive.debian.org/debian-security sarge/updates main contrib non-free
deb-src http://archive.debian.org/debian-security sarge/updates main contrib non-free


I think I'd screwed my old instillation so in the end reformatted and did a new fresh native xebian install and removed all the original sources which all seemed to be causing errors and warnings.

Then replacing with the ones above I seem to be able to run apt-get update and apt-get -f dist-upgrade without any problems.

Samba/Swat etc all seem to install and run fine now as well so huge thanks for that.  biggrin.gif



Out of interest is there any point upgrading the kernel to 2.6.18? Will it alleviate any of these problems and allow me to install from etch?


Now I just need to get SABnzbd working--have updated to pytho2.5 but every time I run SABnzbd.py I get an error about

Sorry, requires Python module sqlite3 (pysqlite2 in python2.4)
Try: apt-get install python-pysqlite2


Bit annoying..... the charms of linux?

If I manage to get it all working might stick together a walk thorough in case it helps anyone?

Thanks again run088

Logged

run088

  • Archived User
  • Hero Member
  • *
  • Posts: 505
Always Having Trouble Installing Via Apt-get
« Reply #3 on: July 05, 2010, 04:29:00 PM »

Only thing the 2.6.18 kernel does for me is enables virtualbox only because that kernel was the only one I could get the dkms package working correctly with which is required to run a virtual envirnorment in virtualbox.



I have sabnzbd running but it has been a while since I built one from scratch. I either might have installed python2.4 and 2.5 somehow or I used a deb package. I have done it a few times and in all likelyhood have done both. I do seem to think I found an etch repo that had all the packages sab requires in it or most. It might have been a backports repo I dont remember. I will look and see if I can find it when I am around that xbox. I always apt-get f dist-upgrade  threw the sarge and grab some select packages that dont seem to break the install in etch like a newer perl, python, java etc. You have to be careful with etch alot of stuff in it will break your install.

It took me forever to get sab running but once I did it was worth it
Logged