LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-19-2017, 05:39 PM   #1
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Stretch
Posts: 968

Rep: Reputation: 81
dpkg --set-selections fails to find hundreds of packages


I have a desktop machine running Debian 9.
I have a notebook running Debian 9.

I copied all my /root and home directories over to the notebook.

I copied /etc/apt/sources.list over to the notebook.

I added all the necessary keys, until no errors are displayed in 'apt-get update'.

I exported my selection from the desktop:
# dpkg --get-selections > /installed-software-20171119.txt

I sent that file to the notebook and imported the selection:
# dpkg --set-selections < /installed-software-20171119.txt

apt throws hundreds of errors at me that look like this:
dpkg: warning: package not in status nor available database at line 1229: xsel

What am I doing wrong?
 
Old 11-22-2017, 11:39 AM   #2
batman23
Member
 
Registered: Mar 2004
Posts: 67

Rep: Reputation: 8
rsync

Did you use rsync?

Wow, does your machine that you copied all that to, boot up?
 
Old 11-22-2017, 09:02 PM   #3
lucmove
Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Stretch
Posts: 968

Original Poster
Rep: Reputation: 81
Solved it.

How I was doing it:

- Copy /etc/apt/sources.list over to notebook.
- Add necessary keys.
- Update apt:
# apt-get update
- Export selection from desktop:
# dpkg --get-selections > /installed-software-20171119.txt
- Send file to notebook and import selection:
# dpkg --set-selections < /installed-software-20171119.txt
- Get puzzled at huge list of errors.
- Update apt AGAIN:
# apt-get update
- Try again:
# dpkg --set-selections < /installed-software-20171119.txt
- Watch huge list of errors AGAIN and get mad.

The correct way to do it:

- Copy /etc/apt/sources.list over to notebook.
- Add necessary keys.
- Export selection from desktop:
# dpkg --get-selections > /installed-software-20171119.txt
- UPDATE DSELECT!!!!:
- dselect update
- Send file to notebook and import selection:
# dpkg --set-selections < /installed-software-20171119.txt
- Run dselect and choose (I)nstall.
 
  


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
[SOLVED] Centos equivalent of dpkg --get-selections/set-selections inemetz Linux - Server 1 03-20-2014 02:30 PM
[SOLVED] difference between dpkg -l and dpkg -get-selections austinium Debian 2 08-02-2011 07:12 AM
Set the status of "purge" packages - dpkg --get-selections kushalkoolwal Debian 7 01-09-2009 12:48 PM
Dpkg/dselect database mess up: Reset selections!! ignasiet Debian 4 05-22-2007 05:28 AM
dpkg --get-selections still shows deinstall pljvaldez Debian 0 02-17-2006 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration