From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6761340396568051712 X-Received: by 2002:adf:b1cb:: with SMTP id r11mr30641097wra.246.1574665261232; Sun, 24 Nov 2019 23:01:01 -0800 (PST) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a5d:5284:: with SMTP id c4ls7127965wrv.15.gmail; Sun, 24 Nov 2019 23:01:00 -0800 (PST) X-Google-Smtp-Source: APXvYqzQaDf36z/ax4woInRRATg9wsPbTsvbRuJDJBhj7GEOblvNRF2jBjBxOyebxsVsnVOpeepl X-Received: by 2002:adf:df03:: with SMTP id y3mr8272352wrl.260.1574665260618; Sun, 24 Nov 2019 23:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574665260; cv=none; d=google.com; s=arc-20160816; b=pSk+1WNL5SHraYr7CRlzgy5CqJRa2IX8Ro9H+9tB05Ou3+qSv0dFimf+eBtdVU1nx0 uFMgbGK4gUnNVII1sOYfIiyDWZjITppoaRRUuoyk3+znQCckT9haBwPbrllkgoyW+zEn L8hjVp/okGnz/UohGRtqs1SNdlOuK6lP9pf612eTIuzfBTeEIjHJ2vSkb/MG+N7acn0U KdE8NVZAG+pYqNXOxclJRNyqpfeNT7OqGa9TwIRCQ0APEKe8nI1jIxZezWZO6CR7+TJH konMelA6iQZtidTkn+lb3FkF5sJx0OIyZCRIavGKsqHFYnPruxf6eOrcvJ8JDq0YlwO7 gFVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:references:cc:to:subject; bh=/IlG1U/9H9nH5MGuR1WRrAEQvfGjGNDmFSwnX2Aq9mQ=; b=aBw30dt6/hNRKxYi7qkP2RXn43IP+rGgBkqhdw+7KxU61008XFUSLgLw/oxHGDPu1N jMZDAC9rnvwagdUI7C5VJ7lB7SeWIBEV40MMeFIWvkRaQomVKpiayomFQa+ZIZBVwuD1 MEuUtahoEN0sCp0QdfKStC180sUBJ+p5rYMvDM9mQjCeS28eSwL2pQxurRtPVV7MRKZl RBCWWdDXKkPGzgAatfYfUbfgZZ0tmCms/T2JY7UvcOGOfCSa3qSw22XqBJgf4rVaAiE8 reUsOSjmltHSEo9xETnn8Qq4vsVdIPu7yuzN5jMFctnMR+fKbHijjO+d1ZxYZLGOyXhq bakg== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Return-Path: Received: from thoth.sbs.de (thoth.sbs.de. [192.35.17.2]) by gmr-mx.google.com with ESMTPS id x5si265422wmx.0.2019.11.24.23.01.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Nov 2019 23:01:00 -0800 (PST) Received-SPF: pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) client-ip=192.35.17.2; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of jan.kiszka@siemens.com designates 192.35.17.2 as permitted sender) smtp.mailfrom=jan.kiszka@siemens.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=siemens.com Received: from mail2.sbs.de (mail2.sbs.de [192.129.41.66]) by thoth.sbs.de (8.15.2/8.15.2) with ESMTPS id xAP70xiX008286 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 25 Nov 2019 08:00:59 +0100 Received: from [167.87.38.251] ([167.87.38.251]) by mail2.sbs.de (8.15.2/8.15.2) with ESMTP id xAP70xxX016445; Mon, 25 Nov 2019 08:00:59 +0100 Subject: Re: [PATCH v2] isar-bootstrap: Clear local apt state information To: Vijai Kumar K Cc: isar-users@googlegroups.com, henning.schild@siemens.com, ibr@radix50.net References: <20191121095401.GA15048@oxygen> <20191121100532.8491-1-Vijaikumar_Kangarajan@mentor.com> <20191125064607.GA13796@oxygen> From: Jan Kiszka Message-ID: <7109a7bf-d5f9-bf3e-8b5f-7228fb9f36bb@siemens.com> Date: Mon, 25 Nov 2019 08:00:59 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 In-Reply-To: <20191125064607.GA13796@oxygen> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-TUID: GYoKzMA+j43a On 25.11.19 07:46, Vijai Kumar K wrote: > On Mon, Nov 25, 2019 at 07:38:18AM +0100, Jan Kiszka wrote: >> On 21.11.19 11:05, vijaikumar.kanagarajan@gmail.com wrote: >>> From: Vijai Kumar K >>> >>> Debootstrap's second stage switches to using the default debian mirror. >>> But the apt state information is renamed and used from the first stage. >>> This might cause apt-get update to fail with the below error when the >>> sources list contain both custom and upstream repos. >>> >>> | Reading package lists... >>> | E: Failed to fetch http://deb.debian.org/debian/dists/stretch/InRelease \ >>> | Unable to find expected entry 'contrib/source/Sources' in Release file \ >>> | (Wrong sources.list entry or malformed file) >>> >>> Clear the apt state information before apt-get update. >>> >>> Signed-off-by: Vijai Kumar K >>> --- >>> Changes in v2: >>> - Addressed review comments from Henning. >>> >>> meta/recipes-core/isar-bootstrap/isar-bootstrap.inc | 1 + >>> 1 file changed, 1 insertion(+) >>> >>> diff --git a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc >>> index d614d9a..9096775 100644 >>> --- a/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc >>> +++ b/meta/recipes-core/isar-bootstrap/isar-bootstrap.inc >>> @@ -280,6 +280,7 @@ isar_bootstrap() { >>> install -v -m644 "${APTSRCS_INIT}" \ >>> "${ROOTFSDIR}/etc/apt/sources-list" >>> rm -f "${ROOTFSDIR}/etc/apt/sources.list" >>> + rm -rf "${ROOTFSDIR}/var/lib/apt/lists/"* >> >> Normally, you would put the wildcard inside the quotes. >> >> Jan > > Unfortunately file globbing doesnot work under quotes. Another alternative is to use quotes only around > the variable as "${ROOTFSDIR}"/var/lib/apt/lists/* > Ah, yes, that was nonsense. Jan > Thanks, > Vijai Kumar K > >> >>> mkdir -p "${ROOTFSDIR}/etc/apt/apt.conf.d" >>> install -v -m644 "${WORKDIR}/isar-apt.conf" \ >>> "${ROOTFSDIR}/etc/apt/apt.conf.d/50isar.conf" >>> >> >> -- >> Siemens AG, Corporate Technology, CT RDA IOT SES-DE >> Corporate Competence Center Embedded Linux -- Siemens AG, Corporate Technology, CT RDA IOT SES-DE Corporate Competence Center Embedded Linux