Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Recreate/Restore Repository and/or change/delete Public Keys??? Post 302654929 by thazsar on Tuesday 12th of June 2012 12:05:57 PM
Old 06-12-2012
'Recreate/Restore' Repository and/or 'change/delete' Public Keys???

I have a BIG problem...

I host a public (Debian) repository on Cydia (for jailbroken iphones). I use my home Mac running Ubuntu in VMWare Fusion. For the repository, I have to have 5 items in a folder to make it 'live:'

1. deb_files folder (to hold my Debian packages)
2. Packages file
3. Packages.bz2 (or .gz) file
4. Release.gpg file
5. en_US.bz2 (Translation) file
***FYI, I also have MD5 Check Sum enabled***

Whenever I add/edit/delete a Debian package, I HAVE to use my home computer to create the 'Packages & Packages.bz2' file or else a user will get a 'Size Mismatch' error when trying to download a package from the repository.

This was frustrating since I couldn't add packages and update my repository from my laptop, but it was doable...until now.

As of this morning, my VMWare Ubuntu system crashed and had to be restored. Now, if I try to:
  • Add/edit/delete a Debian package ->
  • Create my Packages & Packages.bz2 files ->
  • Then, upload it to the server...
...I'm getting the 'Size Mismatch' error whenever I try to download a package.

Is there a way to either restore or replace my repository? Is it possibly a MD5 Sum problem? Is this a Private/Public Key (gpg) issue? I just don't know what the 'original cause' of this error is and how to diagnose it...

PLEASE HELP!!!!!

Thanx in advance...

BTW, I would love to be able to edit my repository from any computer instead of being commited to just one.

Last edited by thazsar; 06-12-2012 at 01:20 PM..
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

SSH public and private keys

Firstly, i apologise if i have posted in a wrong section of the forum. Please let me know which is the correct section my post should go to. I have to SCP a file from one server(server A) to another (server B). I read around that a secure way is to use public and private keys. Assuming my... (2 Replies)
Discussion started by: new2ss
2 Replies

2. UNIX for Dummies Questions & Answers

ssh public keys

Hello*! I have problems with public keys. On one side i have Solaris 10, and on other side is HP UNIX. I created public keys on Solaris with "ssh-keygen -t rsa", append id_rsa.pub key to ~user/.ssh/authorized_keys on remote machine, and tried to connect with ssh without password. But for some... (1 Reply)
Discussion started by: ghost01
1 Replies

3. UNIX for Dummies Questions & Answers

ssh public/private Keys

Hello, I have an issue with an outside party trying to deliver a file to our server via SFTP. I have setup the .ssh directory under the home directory for the user account that is being used and setup the authorized_keys file with correct permissons etc for .ssh directory and file. We... (2 Replies)
Discussion started by: richo king
2 Replies

4. Solaris

Public keys for GPG Encryption

HI, I'm trying to encrypt a file and i'll FTP it to a external server.When i encrypt it using the command gpg -e -r 'recipient name' <filename> its asking me for public keys.Is there a way to encrypt without having to give the public keys? or if i need to give public keys i... (1 Reply)
Discussion started by: James777
1 Replies

5. Shell Programming and Scripting

What are public keys in ssh and how do we create the public keys??

Hi All, I am having knowledge on some basics of ssh and wanted to know what are the public keys and how can we create and implement it in connecting server. Please provide the information for the above, it would be helpful for me. Thanks, Ravindra (1 Reply)
Discussion started by: ravi3cha
1 Replies

6. Shell Programming and Scripting

Delete and Recreate around 400 Symbolic Links in one Folder

Hello, I recently just switched my phphandler to suPHP on my server in order to increase security a bit. I am working with 2 scripts, one of which is vbulletin forums and the other is custom. The vbulletin forum avatars are all symbolic links to pictures in the other custom script. When I... (2 Replies)
Discussion started by: ambition13
2 Replies

7. Shell Programming and Scripting

SFTP - Private and Public keys

Hi All, I have a query....say on server A, I have generated the Private and Public keys and shared the public key with server B. Now i can surelyconnect(without password) from server A to server B..... but can i similarly connect from server B to server A as well Regards (1 Reply)
Discussion started by: Arpit Narula
1 Replies

8. Shell Programming and Scripting

sftp using private and public keys

hi guys , i have few files i have to do sftp, the public and private key work like a magic , no problem at all the syntax is as below sftp -0 identityfile=~/ure/blsl/loc2/.ssh/id_rsa_ssh1 ssh1@remote >log_dir/file.timestamp<<end lcd folder cd folder put * quit end ================ my... (3 Replies)
Discussion started by: rockymayavia
3 Replies

9. AIX

PGP importing public keys method

Hi Guys, I am trying to import the public of vendor to my system. I am getting below error while importing public key. can anyone please help me with this?? laranakejt4:/u/raja/.pgp $ pgp --import secure.asc 0x1545A56A52:import key (4007:key failed signature check) secure.asc:import key... (0 Replies)
Discussion started by: Vinoth Kumar G
0 Replies
dpkg-scanpackages(1)						    dpkg suite						      dpkg-scanpackages(1)

NAME
dpkg-scanpackages - create Packages index files SYNOPSIS
dpkg-scanpackages [option...] binary-path [override-file [path-prefix]] > Packages DESCRIPTION
dpkg-scanpackages sorts through a tree of Debian binary packages and creates a Packages file, used by apt(8), dselect(1), etc, to tell the user what packages are available for installation. These Packages files are the same as those found on Debian archive sites and CD-ROMs. You might use dpkg-scanpackages yourself if making a directory of local packages to install on a cluster of machines. Note: If you want to access the generated Packages file with apt you will probably need to compress the file with xz(1) (generating a Packages.xz file), bzip2(1) (generating a Packages.bz2 file) or gzip(1) (generating a Packages.gz file). apt ignores uncompressed Packages files except on local access (i.e. file:// sources). binary-path is the name of the tree of the binary packages to process (for example, contrib/binary-i386). It is best to make this relative to the root of the Debian archive, because every Filename field in the new Packages file will start with this string. override-file is the name of a file to read which contains information about how the package fits into the distribution (the file can be compressed since dpkg 1.15.5); see deb-override(5). path-prefix is an optional string to be prepended to the Filename fields. If more than one version of a package is found only the newest one is included in the output. If they have the same version and only differ in architecture only the first one found is used. OPTIONS
-t, --type type Scan for *.type packages, instead of *.deb. -e, --extra-override file Scan file to find supplementary overrides (the file can be compressed since dpkg 1.15.5). See deb-extra-override(5) for more information on its format. -a, --arch arch Use a pattern consisting of *_all.deb and *_arch.deb instead of scanning for all debs. -h, --hash hash-list Only generate file hashes for the comma-specified list specified (since dpkg 1.17.14). The default is to generate all currently supported hashes. Supported values: md5, sha1, sha256. -m, --multiversion Include all found packages in the output. -M, --medium id-string Add an X-Medium field containing the value id-string (since dpkg 1.15.5). This field is required if you want to generate Packages.cd files for use by the multicd access method of dselect. -?, --help Show the usage message and exit. --version Show the version and exit. DIAGNOSTICS
dpkg-scanpackages outputs the usual self-explanatory errors. It also warns about packages that are in the wrong subdirectory, are duplicated, have a Filename field in their control file, are missing from the override file, or have maintainer substitutions which do not take effect. SEE ALSO
dpkg(1), dselect(1), deb-override(5), deb-extra-override(5), dpkg-scansources(1). 1.19.0.5 2018-04-16 dpkg-scanpackages(1)
All times are GMT -4. The time now is 03:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy