LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-04-2013, 12:13 AM   #1
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Rep: Reputation: Disabled
how to remove a package from local repositories


As there are bugs in the packages related to Newt so I am getting frequently the error unable to initialize frontend:Newt.

I have tried to reconfigure debconf by the command dpkg-reconfigure debconf again I am getting the same error.

After fresh installation I have tried to lock the package linnewt0.52 by the command apt-mark hold libnewt0.52 even no use I mean when I issue the command dpkg --configure -a I am getting same error.

Please try to suggest how to delete all the packages related to Newt and their dependencies from local repositories if not suggest atleast how to remove libnewt0.52 from local repositories.

Last edited by rupeshforu; 07-04-2013 at 12:15 AM.
 
Old 07-04-2013, 12:16 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

you already have a thread open on this that I replied to. Please don't open new threads on old topics.

Evo2.
 
Old 07-04-2013, 12:30 AM   #3
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
I have followed the suggestions given by you but no use so what I am requesting how to remove package from local repositories.

Last edited by rupeshforu; 07-04-2013 at 12:31 AM.
 
Old 07-04-2013, 12:45 AM   #4
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by rupeshforu View Post
I have followed the suggestions given by you but no use so what I am requesting how to remove package from local repositories.
So post back showing what happened, and you may have a chance of solving the underlying problem: the debconf frontend. This problem results in your attempts to use your package manager to install or remove software to fail.

Evo2.
 
Old 07-04-2013, 12:50 AM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by rupeshforu View Post
Please try to suggest how to delete all the packages related to Newt and their dependencies from local repositories if not suggest atleast how to remove libnewt0.52 from local repositories.
This should fail because of your debconf problem, but you remove packages using your package manager.
For example to remove all packages with "newt" in their name:
Code:
apt-get remove --purge $(dpkg -l '*newt*' | grep '^ii' | awk '{ print $2}')
Evo2.
 
Old 07-04-2013, 01:12 AM   #6
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
Sir yesterday I performed fresh installation and when I try to install other package and if this package depends on libnewt then fist libnewt will be installed after that the package which I selected is installing Finally I can't install or remove anything or even unable to reconfigure anything.

So kindly suggest how to remove or delete all the packages related to Newt and all its dependencies from local repositories. If not atleast suggest how to remove the package libnewt0.52 from local repositories.
 
Old 07-04-2013, 01:31 AM   #7
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

Quote:
Originally Posted by rupeshforu View Post
So kindly suggest how to remove or delete all the packages related to Newt and all its dependencies from local repositories. If not atleast suggest how to remove the package libnewt0.52 from local repositories.
In your posts you have been referring to "local repositories", I had assumed you meant packages installed on your system, in my previous post I showed how to remove such packages. Now I wonder if you mean something else by "local repositories". Can you explain?

Note also that it would be far easier to help you if you cut and pasted the output from your terminal when you are reporting problems so that readers can actually see what is happening instead of reading your interpretation of it and then trying to infer what is happening.

Evo2.
 
Old 07-04-2013, 02:03 AM   #8
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
Sir I will explain what I mean by local repository. Debian wheezy installation dvds consist of 10. I have copied all the iso images to harddisk then I made entries to fstab inorder to mount these 10 dvds at /media and then I have added entries to sources.list and then issued the command apt-get update and this command generated packages.gz etc., finally when I open synptic I am able to view 36000 packages. Now I am asking how to delete packages related to newt I mean how to modify the configuration files.

Today I have freshly installed wheezy and from now onwards I don't want to install any of the packages related to newt so I am requesting how to archive this.
 
Old 07-04-2013, 02:17 AM   #9
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

what you describe seems like quite a strange approach, and not something I would ever bother to work out how to do. But, the approach would be to rm all the relevant .deb files and then regenerate the Packages files. Since you created this repository, you'll know best how to do that.

The above seems like a serous PITA, so why can't you just uninstall packages that you don't want and then put them on hold?

Finally, you claim some package related to libnewt has a bug: is it on bugs.debian.org?

Evo2.
 
Old 07-04-2013, 02:37 AM   #10
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
Yes this is a release critical bug. I have copied all the .deb files to one directory/var/My_Repo and removed all files containing newt like python-newt etc.,. Now can you please suggest how to create a repository using this directory.
 
Old 07-04-2013, 02:48 AM   #11
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
http://bugs.debian.org/cgi-bin/pkgre...ge=libnewt0.52

No RC bugs there.
None that seem to match your description either.

Maybe it is something else?
 
Old 07-04-2013, 02:50 AM   #12
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by rupeshforu View Post
Yes this is a release critical bug.
Ok, then why is it in the release? Do you have the bug number?

Quote:
I have copied all the .deb files to one directory/var/My_Repo and removed all files containing newt like python-newt etc.,. Now can you please suggest how to create a repository using this directory.
Sorry, as already explained you did this once before, why can't you do it again....

Did you use dpkg-scanpackages, apt-move? Some other tool? Just repeat whatever you did to make the Packages.gz (or Packages.bzip2) last time.

Evo2.
 
Old 07-04-2013, 03:49 AM   #13
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
Sorry I am not an advanced system administrator and previously I have followed the procedure by searching google "adding an iso image to sources.list". Please try to suggest how to make a repository by using the directory specified by me.

Please search google for "unable to initialize frontend debconf: newt".
 
Old 07-04-2013, 05:25 AM   #14
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

I mentioned two such tools for making repositories in my previous post.

And no, I will not perform Google searches for you.

Also, please note that I still think you are taking the wrong approach, as you have not yet provided any real information about a bug related to libnewt. You seem to expect me magically solve your perceived problem when you are not even willing to provide basic information that I have requested. If I write a sentence that ends with a "?" it means that I have asked you a question because there is information that I believe I need in order to help you.

Evo2.

Last edited by evo2; 07-04-2013 at 06:22 AM.
 
Old 07-04-2013, 07:10 AM   #15
rupeshforu
Member
 
Registered: Dec 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
ok I will explain in detail below.

The problem I am facing is whenever I try to install or remove a package everything is performed well except post installation

Suppose I try to install a package foo I am describing what's going on
apt-get install foo
retrieving bug information failed do you want to retry(y/n): n
do you want to install the above packages(y/n):y
reading database
preparing to configure foo
unpacking foo from ....
setting up foo
unable to initialize debconf frontend: Newt
can't find ....
many errors encountered while performing installation and dpkg exited unexpectedly.

Even I have tried to reconfigure debconf and the output is
debconf: unable to initialize frontend: Newt
debconf: (Can't locate Debconf/FrontEnd/Newt.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 26) line 2.)
debconf: falling back to frontend: Noninteractive

I will explain the process by using another instance I have tried to reinstall gdm3 package and the output is
reading database
preparing to configure gdm3
unpacking gdm3 from ....
setting up gdm3
debconf: unable to initialize frontend: Newt
debconf: (Can't locate Debconf/FrontEnd/Newt.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at (eval 26) line 2.)
debconf: falling back to frontend: Noninteractive
restarting gdm3
then # prompt appears.
 
  


Reply



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
Yum local install - package and all dependencies in local directory lppatmore Linux - Newbie 6 02-21-2015 02:53 AM
Automate 'Remove all Repositories' through SSH random0munky Linux - Server 1 06-25-2013 02:00 PM
how should i remove a package in a local cache? turf Linux - Newbie 3 10-07-2010 10:45 AM
Local Repositories sbabcock23 Linux - Server 2 05-11-2010 07:06 PM
Setting Up Local Ubuntu Repositories AntWarrior Ubuntu 2 04-22-2005 06:49 AM

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

All times are GMT -5. The time now is 01:39 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