LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 09-05-2005, 07:23 PM   #1
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Rep: Reputation: 30
apt-get on local files


Hello,

If I want to install a local package with Apt-Get in Ubuntu if I read the manual from APT I should do the following :

---------------------------------------------------------------------
Assuming the package is in /root/debs

Make an addition to sources.list

deb file:/root debs/

after that use the apt command as usual
--------------------------------------------------------------------
Synaptic however gives an error like this

W: Couldn't stat source package list file: debs/ Packages (/var/lib/apt/lists/_root_debs_Packages) - stat (2 No such file or directory)

I assume this means it needs still another file..................

If however I use dpkg to make that file I get something like this :

dbootstrap_settings debs Desktop install-report.template output.pdf
root@medusa:~ # dpkg-scansources debs | gzip > debs/Sources.gz
Prototype mismatch: sub main::getopt: none vs (@) at /usr/bin/dpkg-scansources l ine 116.

Can anyone give me some simple answers on this question :

Do I have to add more files to the debs directory and if so how do I do it right?

Thanks in advance.

CloudBuilder
 
Old 09-05-2005, 07:29 PM   #2
aysiu
Senior Member
 
Registered: May 2005
Distribution: Ubuntu with IceWM
Posts: 1,775

Rep: Reputation: 86
Are you sure the package has dependencies? Can't you just sudo dpkg -i packagename.deb?

For example, this is how I installed the .deb for the Opera web browser.
 
Old 09-05-2005, 07:40 PM   #3
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by aysiu
Are you sure the package has dependencies? Can't you just sudo dpkg -i packagename.deb?

For example, this is how I installed the .deb for the Opera web browser.
=====================================================================

I'm not sure, and I don't like to ruin a good working system.

I always said: If you don't know what you are doing, don't do it....

The W error from Synaptic indicates that I didn't refresh but if I do I get something like :

file:/root/debs/Packages.gz: File not found

The problem for me is the following :
Which files does apt expect in debs - the package I assume and Packages.gz?
and how do I make the GZ file, I assume with dpkg, but I saw 2 versions of the same manual from apt, but they had a different text about this item( one talkes about Packages.gz the other about Sources.gz), and that is confusing me. I like to get it clear.

CloudBuilder

Last edited by CloudBuilder; 09-05-2005 at 07:41 PM.
 
Old 09-05-2005, 07:56 PM   #4
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
In the /root directory use dpkg-scanpackages debs /dev/null | gzip -9c > debs/Packages.gz and that will create the Packages.gz it is looking for.

Edit: And if it complains about not finding a Release file create one with similar contents to this.

Code:
HappyTux:/home/stephen# cat /var/www/debian-packages/binary/Release
Archive: sarge
Component: contrib
Origin: Stephen Cormier
Label: Stephen Cormier Debian repository
Architecture: amd64
Of course changing the lines to match your situation the Architecture: would most likely be i386 and change the Archive: to whatever you are running the rest is pretty much up to yourself.

Last edited by HappyTux; 09-05-2005 at 08:03 PM.
 
Old 09-06-2005, 04:07 PM   #5
CloudBuilder
Member
 
Registered: May 2003
Location: Netherlands
Distribution: Ubuntu, Puppy
Posts: 386

Original Poster
Rep: Reputation: 30
Thank you for the clear answer, that will help me a lot.

CloudBuilder
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding local folders to APT-GET mickboda Linux - Software 3 05-23-2005 04:05 AM
local apt repo adem0rdna Fedora 5 02-08-2005 09:59 PM
how to create a local apt repository bakwas_internet Fedora 3 01-19-2004 02:14 AM
How do I build a local repository using apt (RH 9) ? hadding Linux - Newbie 3 10-27-2003 12:38 AM
How to build a local repository with apt (RH 9) ? hadding Red Hat 3 10-27-2003 12:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration